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
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

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
 

Forum statistics

Threads
1,147,823
Messages
5,743,406
Members
423,792
Latest member
travisds

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