Coverting a string of numbers to date format

mjmoon

Board Regular
Joined
Mar 1, 2005
Messages
249
Greetings!

Currently I recieved a file that contains a field for the date however it looks like this; 101106 or 50206. I want to beable to sort this worksheet by dates and off course they are not in a date format. If I select the column and format it for date it takes this number and correlates it to the specific day that this number correspondants to, not the actual date. Is there any way to format these dates to read 10-11-06 (101106), 05-02-06 (50206)? Any suggestions would be great. Thanks in advance for you help.

Marc
 

Some videos you may like

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
I don't think that'll work if you have dates from different years because custom formatting won't change the underlying value of the cell.

To convert to dates

Select column of dates

Data > Text to columns > at step 3 select Date format and MDY
 

Watch MrExcel Video

Forum statistics

Threads
1,113,917
Messages
5,545,024
Members
410,647
Latest member
bernardazar
Top