Cnverting text date into Excell date

Gildasl

New Member
Joined
Mar 29, 2012
Messages
22
Hi,

I have a cell filled with date in a text format like "May 8 2011" or "Jun 6 2008" and need to convert them into excel cell date format such as "05/08/11" or "06/06/08".

Unfortunately the lookup function work only for data sorted in ascending order.

Thanks in advance for your help.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Give this formula a try...

=1*REPLACE(A1,LEN(A1)-4,0,",")

You will then be able to apply any date format you want, although that may not be necessary... leave the offset number returned by the formula if you only need this for numerical ordering purposes.
 
Last edited:
Upvote 0
Give this formula a try...

=1*REPLACE(A1,LEN(A1)-4,0,",")

You will then be able to apply any date format you want, although that may not be necessary... leave the offset number returned by the formula if you only need this for numerical ordering purposes.
If you wanted to convert the data within the cell they occupy (rather than use a formula in another cell), select the column of "text dates" and call up the Convert Text To Columns dialog box, select "Delimited" on Step 1, make sure the "Space" checkbox is not checked in Step 2, then select the "Date" option button in Step 3 and make sure its drop-down has "MDY" selected and, finally, click the "Finish" button.
 
Upvote 0
Thanks Rick. That works nicely. I like very much the "Convert Text to columns" wizard.
Gildas
 
Upvote 0
I was just wrestling with some horrible imported data I needed to convert that was thousands of lines long and didn't respond to format painting or formulas well and I just bumped into this post.

Thanks alot!
 
Upvote 0

Forum statistics

Threads
1,215,490
Messages
6,125,096
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