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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,416
Messages
6,119,386
Members
448,891
Latest member
tpierce

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