+ Reply to Thread
Results 1 to 6 of 6

Converting a Hex date to YYYYMMDD

  1. #1
    Registered User
    Join Date
    10-26-2007
    Posts
    5

    Converting a Hex date to YYYYMMDD

    How do i go about converting a number in Hex to a readable date.

    As an example i know 57624 is 8/10/2007

    Thanks

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    57624 decimal is 06 Oct 2057; enter it into a cell and format it as a date (Format > Cells > Number > Date) to see.

    57264 interpreted as hex is 357924 decimal, which is 16 Dec 2879.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    with the hex in a1
    use in b1 =HEX2DEC(A1)
    (enable the analysis tool pack in tools /add ins first)
    and format b1 to desired date format

  4. #4
    Registered User
    Join Date
    10-26-2007
    Posts
    5
    My mistake i was wrongly informed. This is a conversion from packed decimal to gregorian.

    Any ideas.

    From my info 57624 is 8/10/2007

    Thanks

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    By "8/10/2007" I presume you mean 8th October 2007 (not 10th August) in which case that looks like a count of days from 1/1/1850. If so then with your "date" in A1 you can convert to a gregorian date with

    =A1-18261

    format as date

    This assumes you are using Excel's default 1900 date system. The following formula does the conversion irrespective of date system (1900 or 1904)

    =A1-19723+DATE(4,1,1)

  6. #6
    Registered User
    Join Date
    10-26-2007
    Posts
    5
    Thank you for your help
    this has sorted it for me

    P.j.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1