One more....I promise

rae30

Board Regular
Joined
May 27, 2002
Messages
147
How can I make Excel understand that 01/02/04 is Feb 1st 2004, not Jan 2nd 2004.


Ray
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Guitarde

Board Regular
Joined
Mar 18, 2003
Messages
238
I think you got to change the Regional settings in the control pannel.
That's what drives how the dates have to be entered in Excel.
 

rae30

Board Regular
Joined
May 27, 2002
Messages
147
I don't want to change my system settings for one project.

I auto filled the formula down...it seems to work for only when the day is> 12.

:oops:
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
rae30 said:
I don't want to change my system settings for one project.

I auto filled the formula down...it seems to work for only when the day is> 12.

:oops:

Because 27/06/03 is text (text if day > 12).

Try:

=IF(N(A1),DATE(YEAR(A1),DAY(A1),MONTH(A1)),DATE(2000+RIGHT(A1,2),MID(A1,4,2),LEFT(A1,2)))

It's of course better to try to fix this problem at the source or during the import.
 

rae30

Board Regular
Joined
May 27, 2002
Messages
147
Your my new bestest friend.

Thanks a lot, you just saved me 2 hours of keying dates.

Ray
 

Forum statistics

Threads
1,171,072
Messages
5,873,638
Members
432,990
Latest member
Nuppu

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
Top