+ Reply to Thread
Results 1 to 8 of 8

Unrecognized date format

  1. #1
    Registered User
    Join Date
    03-05-2007
    Location
    Colorado Springs, CO
    MS-Off Ver
    2010
    Posts
    45

    Unrecognized date format

    I received a file that has dates listed as yyyymmdd and I can't get excel to recognize this format as a date so I can do date calculations on them.

    Here is what I've tried:
    Under "format cells -> number -> date" I tried a few different formats and just get "#######" back which is logical since they aren't serial numbers.

    I also tried: "format cells -> number -> custom" input a new type of date format of yyyy/mm/dd and when I apply the new format to my column i just get "##########" back.

    What am I missing? I have 190K rows so would rather not have to do a calculation to create the date but if that is the only way to do it I will....

    Thoughts? Thanks!
    Last edited by olsoniv; 03-25-2011 at 05:51 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Unrecognized date format

    I'm afraid you're going to have to deconstruct them and convert to dates using DATE() and MID() functions (or LEFT(), MID() and RIGHT() functions.

    Do you need help with that?

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,472

    Re: Unrecognized date format

    A date is actually just a number, in fact, the day number starting with 01/01/1900. Today, 25/03/2011, is 40627.

    So, taking a number like 20110325 and formatting it as a date will not work.

    If you're getting a .csv file, you might be able to format it on the import.

    Your best bet is to post a sample workbook and/or raw data file.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    03-05-2007
    Location
    Colorado Springs, CO
    MS-Off Ver
    2010
    Posts
    45

    Re: Unrecognized date format

    That's what i was afraid of....I can handle that part. Thanks.

  5. #5
    Registered User
    Join Date
    03-05-2007
    Location
    Colorado Springs, CO
    MS-Off Ver
    2010
    Posts
    45

    Re: Unrecognized date format

    @TM - I will see if I can do it on the import as it is a CSV. Thanks for the suggestion.

  6. #6
    Registered User
    Join Date
    03-05-2007
    Location
    Colorado Springs, CO
    MS-Off Ver
    2010
    Posts
    45

    Re: Unrecognized date format

    @TM, thanks, that worked. I should have thought of that. :-)

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,472

    Re: Unrecognized date format

    I have just tested it with a very small sample and it works for me.

    Regards

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,472

    Re: Unrecognized date format

    Posts crossed ... but thanks for the update.

    Regards

+ 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