+ Reply to Thread
Results 1 to 3 of 3

On An Import To Excel A Two Digit Date is the wrong century.

  1. #1
    Registered User
    Join Date
    08-13-2012
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2010
    Posts
    34

    On An Import To Excel A Two Digit Date is the wrong century.

    On my companies host system we store dates as 1-Feb-30. When I create an extract of these dates and import into excel they are not interpreted as the correct century. The same date in my import will come out as 12/1/1930. I think it has something to do with the import but I am not sure what. Has anyone ran into this and know of a fix?

    Thanks!

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: On An Import To Excel A Two Digit Date is the wrong century.

    That's the problem with 2-digit-year dates. Excel needs to assign a 4-digit year to them based on specific logic. Currently, Excel 2007/2010 cuts off at 30. Years before that are assigned to this century (2000's). Years 30 and greater are assigned to last century (1900's).

    There are various approaches to correcting that issue for you, depending on the type of file you're importing and its contents.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: On An Import To Excel A Two Digit Date is the wrong century.

    Hi scyllanbay,

    I don't have much of an answer for you... I think Excel thinks any dates imported with only 2 digit years can only be dates that has already happened... so since 2030 hasn't happened yet, it will think '30' as 1930.

    You might have to pick a year and create a formula like =if(year(A1)<=1930,date(year(A1)+100,month(A1),day(A1),A1)

    Sorry, can't be more help...

+ 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