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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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.
 
Upvote 0
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:
 
Upvote 0
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.
 
Upvote 0
Your my new bestest friend.

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

Ray
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,257
Members
449,075
Latest member
staticfluids

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