Change the format of the date

krishnanaik

Board Regular
Joined
Aug 5, 2005
Messages
81
Hi!!

Please help

I have a list of approx 200 dates in the following format yyyymmdd (e.g 20060901). I would like to change this format to the following dd/mm/yyyy (e.g 01/09/2006).

What is the easiest way to do this?????

Many Thanks
Krishna
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi,

in another column put
=RIGHT(A1,2)&"/"&MID(A1,5,2)&"/"&LEFT(A1,4)
then paste the values

kind regards,
Erik

EDIT: to get the correct numberformat you might need to do a text-to-columns: in the last TAB select datataype "date"
 
Upvote 0
EDIT: to get the correct numberformat you might need to do a text-to-columns.....

In fact you don't need a formula at all if you have a column of dates in that format.

You can convert in situ

Select Column
Data > Text to Columns
At step 3 choose date option with format YMD

edit: although if you did want to use a formula.......

=TEXT(A1,"0000-00-00")+0

format as date
 
Upvote 0

Forum statistics

Threads
1,214,965
Messages
6,122,495
Members
449,088
Latest member
Melvetica

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