+ Reply to Thread
Results 1 to 11 of 11

Formula to Convert numbers to date

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    28

    Formula to Convert numbers to date

    How would I go about converting this number to a date?
    1120927

    the date should be 09/27/2012.

    Thanks!

  2. #2
    Registered User
    Join Date
    10-01-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Formula to Convert numbers to date

    =TEXT(A1,"dd-mm-yyyy")

    Type a value in A1
    Fredy

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Formula to Convert numbers to date

    dunno its a bit wierd but i guess this

    Please Login or Register  to view this content.
    A1 is where your date munber is
    The Importance of INDEX - A GUIDE TO INDEX'S OTHER USES
    <--- If a post helps hit the star

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Formula to Convert numbers to date

    Quote Originally Posted by Fredy.Antony View Post
    =TEXT(A1,"dd-mm-yyyy")

    Type a value in A1
    Fredy
    first thing i tried but not so. the numbers are in a weird order. im guessing are some kind of uniquqe refernce.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,734

    Re: Formula to Convert numbers to date

    Just to add to Twiggy's solution, if you want a proper date returned then you can do this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Format the cell as a date.

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    10-01-2012
    Location
    Dubai
    MS-Off Ver
    Excel 2010
    Posts
    37

    Re: Formula to Convert numbers to date

    @
    twiggywales

    Yes number are weird .. if that date is in a number format this formula will work

    @ Pete_UK

    =VALUE(MID(A1,4,2)&"/"&RIGHT(A1,2)&"/20"&MID(A1,2,2))

    This formula works
    Last edited by Fredy.Antony; 10-03-2012 at 10:01 AM. Reason: Corrected

  7. #7
    Registered User
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Formula to Convert numbers to date

    Worked like a charm, thanks

  8. #8
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    wales
    MS-Off Ver
    Excel 2007
    Posts
    964

    Re: Formula to Convert numbers to date

    remeber to mark it solved and star tap the posts that helped

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula to Convert numbers to date

    Another way:

    =--TEXT(20 & MOD(A1, 1000000), "0000-00-00")
    Entia non sunt multiplicanda sine necessitate

  10. #10
    Registered User
    Join Date
    09-06-2012
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Formula to Convert numbers to date

    Sorry, how do I mark as solved?

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula to Convert numbers to date

    Everything you need to know: Forum Rules

+ 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