from numbers to date

Guillaume

New Member
Joined
Mar 4, 2004
Messages
2
Hi,

I was wondering if anyone knows a way to automaticaly transform a number into a date. Ex. : I have 19980615 and I want this to be 1998-06-15, june 15 of the year 1998. I tried with the format of the cell, but that doesn't really transform the number, it just a different format on the screen. I have to transform a large number of data. Thanks.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Select the cell with the date, and go to Data\Text to columns.

Select Delimited and click next. Uncheck any delimiters that may be selected, and click next. Under Column data format, select Date, and choose YMD from the dropdown. Click Finish, and you should get a date format instead.

Hope it helps,
 
Upvote 0
Thanks you very much, both of you. I tried the easy way, as Jon put it, and it works, miracle. This was my first time, certanly not the last.

Guillaume :biggrin:
 
Upvote 0
Von Pookie said:
:LOL: Sorry, Jon. Your post wasn't there when I started typing that.


:)

Hey, VP -- you gave him the A-list answer; I tried to slap him with code that wasn't needed. :cool:
 
Upvote 0

Forum statistics

Threads
1,214,529
Messages
6,120,070
Members
448,943
Latest member
sharmarick

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