+ Reply to Thread
Results 1 to 7 of 7

How to turn dates back to numbers

  1. #1
    Registered User
    Join Date
    12-21-2010
    Location
    Finland, Pirkanmaa
    MS-Off Ver
    Excel 2007
    Posts
    7

    How to turn dates back to numbers

    Hi!

    I opened a html page to excel that contained tables of numbers.

    The import went otherwise fine, but some of the numbers got turned into dates.

    When I try to format those cells to be fractions again, I get crazy numbers like 40586 which is obviously not what the number was originally.

    How can I get excel to display the original numbers instead of dates?
    Vote on stuff! www.pollforum.org

  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

    Re: How to turn dates back to numbers

    Try pre-formatting the cells as Fraction before you import, and try again.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    12-21-2010
    Location
    Finland, Pirkanmaa
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to turn dates back to numbers

    Quote Originally Posted by shg View Post
    Try pre-formatting the cells as Fraction before you import, and try again.
    I already tried that, but it doesn't seem to work since I use "open file" command to get the html-document into excel.

    I'm also very curious to find out if it is not possible to convert the numbers back to the original ones, since IMHO that would be a huge missing feature in such a big program like Excel.

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to turn dates back to numbers

    It is definitely not possible once Excel has converted them to dates. Sorry.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    12-21-2010
    Location
    Finland, Pirkanmaa
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: How to turn dates back to numbers

    Quote Originally Posted by ChemistB View Post
    It is definitely not possible once Excel has converted them to dates. Sorry.
    Why oh why!

    You would think it would be the easiest thing in the world since if you can convert a number like 21,5 into a date like 21.may then why on earth can you not do the same process backwards in Excel? :S

  6. #6
    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: How to turn dates back to numbers

    Provide an exhaustive list of all the fractional data string formats that have been converted to dates.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to turn dates back to numbers

    Hmmm, let's say your imported area is A1:V25 in sheet1
    In Sheet2, format that same range as fraction. Then in Sheet2!A1

    =MONTH(Sheet1!A1)/DAY(Sheet1!A1)
    It will simplify your fractions (i.e. 3/15 will become 1/5) but it should work.

    EDIT, depending on your default date format
    =DAY(Sheet1!A1)/MONTH(Sheet1!A1)

+ 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