Date format

rae30

Board Regular
Joined
May 27, 2002
Messages
147
I have a data dump that I have to format in Excel and I'm having difficulty formatting the date.

For example 01/05/2015 formats to Jan 5th 2015, however it should be May 1st. How do I fix this.
 
in other words if you have in cell A1 01/05/2015 and you want it to be May 1st

in B1
=MONTH(A1)
In C1 =DAY(A1)
In D1 =YEAR(A1)

And lastly F1

=DATE(D1,C1,B1)

Additionally you could shorten this by just using


=DATE(YEAR(A1),DAY(A1),MONTH(A1))
 
Last edited:
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
in other words if you have in cell A1 01/05/2015 and you want it to be May 1st

in B1
=MONTH(A1)
In C1 =DAY(A1)
In D1 =YEAR(A1)

And lastly F1

=DATE(D1,C1,B1)

Text to columns as above, will do the same, without the helper columns.
 
Upvote 0
Text to columns as above, will do the same, without the helper columns.


true...... IF the original is formatted as text... But if excel recognizes it as date then it will just leave it as is... <--- never-mind this last part i JUST tested it and i was wrong
 
Upvote 0
Have you checked the use 1904 date option?

its under excel options, advanced, scroll down to "when calculating this workbook" select or unselected 1904 date option
 
Upvote 0

Forum statistics

Threads
1,215,523
Messages
6,125,318
Members
449,218
Latest member
Excel Master

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