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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

erik.van.geit

MrExcel MVP
Joined
Feb 1, 2003
Messages
17,832
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"
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
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
 

Forum statistics

Threads
1,141,626
Messages
5,707,486
Members
421,510
Latest member
haroonstr

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
Top