Parsing Text and Converting to Date?

EatingSteak

New Member
Joined
Mar 25, 2015
Messages
7
I'm trying to take a rather clumsy spreadsheet (sent to me periodically by a customer) and distill the crap into usable parts.

So I have a text-input cell with the 'date' in it, which appears like "Oct. 1 - 7, 2000" (see screenshot). Naturally this is for the week of Oct 1st, 2000.
vG0RyYF.png

Can I 'translate' this into usable numbers? It would be nice to create a new column to do this.

I see Excel has a "Text to Columns" Wizard, but I'm having a hard time coming up with a way to do it through that. The months "June" and "July" are spelled out (there's no period), and "May" only has three letters, where others have four, or three plus a dot.

Any way to do this systematically? Or am I just better off processing the spreadsheets manually?
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
So I have a text-input cell with the 'date' in it, which appears like "Oct. 1 - 7, 2000" (see screenshot). Naturally this is for the week of Oct 1st, 2000.

Can I 'translate' this into usable numbers? It would be nice to create a new column to do this.
So what exactly do you want to get out of this?
Are you just looking for the first date in the range (i.e. Oct. 1, 2000 in your example)?
 
Upvote 0
If you are just looking for the first date in the date range in a valid date format, use a formula like this (for a value in cell A2):
Code:
=DATEVALUE(SUBSTITUTE(LEFT(A2,FIND("-",A2)-1),".","") & MID(A2,FIND(",",A2),6))
 
Last edited:
Upvote 0
You are welcome.
Yes, I have had lots of experience in cleaning up poorly formatted data too!;)
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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