Excel changes dates to 2004 automatically.

ckmoied

Board Regular
Joined
Oct 13, 2002
Messages
154
after importing data from text file, excel converts all the dates after 2000 to 2004.

For instance, the first column in all the text files is as follows:

Nov-00
Dec-00
jan-01
.
.
.
Dec-03

But once this text file is opened or imported into excel, then all dates after Dec-00 are automatically converted to MMM-04. as follows.

Nov-00
Dec-00
Jan-04
.
.
.
Dec-04

Any clues to resolve this problem, and why does it happen.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
This is because excel is confused when you only input the month and the last two digits of the year. If it sees only jan-00, it understand that it is month and year as there is no 00 in day and excel will put 1 as the default day automatically but if you input Jan-01, it reads it as month-day format and excel automatically put the default year which is the current year . To avoid this, your data should the full year like jan-2001 or import it as text (step 3-3) of import wizard data type.
 
Upvote 0

Forum statistics

Threads
1,203,686
Messages
6,056,736
Members
444,887
Latest member
cvcc_wt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top