Change Date from 20040102 to 2004/01/02

anand_satavalekar

New Member
Joined
Sep 23, 2006
Messages
1
I have date in a numeric format: 20040102 (which is in the yyyymmdd format).

How do I change it to Date format? I do not want to manually insert "/" between year and month and date.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
You could use Data>Text to columns... and on the 3rd step choose YMD from the dropdown.

That should create a 'real' data value which you could then custom format as yyyy/mm/dd.
 
Upvote 0
=LEFT(A1,4) & "/" & LEFT(RIGHT(A1,4),2) & "/" & RIGHT(A1,2)

Assuming your dates are in Column A
 
Upvote 0
Welcome to MrExcel -

You should be able to simple highlight the cell{s} in question, then click Format | Cells | select Date, then the desired format.

The above presupposes the cell is a true date.
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,170
Members
448,870
Latest member
max_pedreira

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