Convert numbers to date

jayemoh77

Board Regular
Joined
Feb 2, 2012
Messages
56
Hello all-
I have a long row of dates formatted as 'general' that looks like this:
20170329

<tbody>
</tbody>
How can I fix it to read:
03/29/2017

Thank you!
Julie
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Highlight the column
Select "Text to Columns" from the Data menu
Hit Next until you get to Step 3
Choose the Date radio button option, and choose the YMD date format
Click Finish

It is now a date, and you can apply any date format you desire to that column.
(No formulas, VBA, or helper columns needed!).
 
Last edited:
Upvote 0
Another way, if your numbers are always 8 digits:

=DATE(LEFT(A1,4),MID(A1,5,2),RIGHT(A1,2))
 
Upvote 0

Forum statistics

Threads
1,215,491
Messages
6,125,101
Members
449,205
Latest member
ralemanygarcia

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