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 to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
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
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,054
Latest member
juliecooper255

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