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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

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