Text To Columns: To Use Find & Replace
Text To Columns: To Use Find & Replace
1.01.2014
Using Find and Replace to replace the decimal with a forward slash converts the text
string to an Excel serial number in one fell swoop.
Excel should detect that your text is now a number and format it automatically as a
date. If that doesn’t work, you can try the next tool; Text to Columns.
Tip: You can also use Find & Replace to fix date text strings with other delimiters like
spaces, or the hyphens we saw in the VALUE and DATEVALUE examples. Just enter a
space or hyphen in the ‘Find what’ field instead of the decimal place.
4. Text to Columns
Personally I love Text to Columns. It is one of the most versatile tools for fixing data
imported from other systems. I’m going to show you how to fix dates with it now, but I
recommend you take some time to play around with the other options it offers.
Simply select your dates in column A > Data tab of the ribbon > Text to Columns to
open the Wizard:
https://www.myonlinetraininghub.com/6-ways-to-fix-dates-formatted-as-text-in-excel 3/52
7/25/22, 1:56 PM 6 Ways to Fix Dates Formatted as Text in Excel • My Online Training Hub
Step 3 of the Wizard: Choose 'Date' from the 'Column Data Format' options and choose
your date format from the drop down list (my dates are YMD), and click the Finish
button:
Tip: Note how the ‘Date’ drop down list above has many different combinations of D M
Y, you simply choose what order your dates are formatted in from the list.
This means you could have also used Text to Columns to fix the dates we looked at
with VALUE and DATEVALUE that had hyphens, or even decimal place delimiters, or
for example if your dates are text strings like these:
Jan 1 2014
You’d simply choose MDY from the drop down list in step 3 of the wizard to fix the dates
above. Versatile eh?
Now, while Text to Columns is pretty powerful, it has its limits. For example if your dates
are formatted like this:
You need to put in a bit more effort. Here is a tutorial where I use both Text to Columns
and the DATE function to fix the above date format.
https://www.myonlinetraininghub.com/6-ways-to-fix-dates-formatted-as-text-in-excel 4/52