0% found this document useful (0 votes)
21 views2 pages

Fixing Date Formats in Excel

The document discusses 6 ways to fix dates formatted as text in Excel, including using Find and Replace to replace delimiters like decimals with slashes, converting the text to a serial number. Text to Columns can also be used by selecting the dates, choosing Delimited and selecting Date format. For more complex formats, formulas like VALUE and SUBSTITUTE can replace delimiters in dates before converting them to serial numbers.

Uploaded by

aksldjgvb
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views2 pages

Fixing Date Formats in Excel

The document discusses 6 ways to fix dates formatted as text in Excel, including using Find and Replace to replace delimiters like decimals with slashes, converting the text to a serial number. Text to Columns can also be used by selecting the dates, choosing Delimited and selecting Date format. For more complex formats, formulas like VALUE and SUBSTITUTE can replace delimiters in dates before converting them to serial numbers.

Uploaded by

aksldjgvb
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

7/25/22, 1:56 PM 6 Ways to Fix Dates Formatted as Text in Excel • My Online Training Hub

1.01.2014

This is where Find & Replace is a great option.

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.

To use Find & Replace:


1. Select all the dates you want to fix
2. Press CTRL+H to open the Find & Replace dialog box<
3. Enter a decimal place in the ‘Find what’ field, and a forward slash in the ‘Replace
with’ field
4. Click ‘Replace All’:

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.

So, if your dates are formatted in text strings like this:

You can use Text to Columns to quickly reformat them all.

Simply select your dates in column A > Data tab of the ribbon > Text to Columns to
open the Wizard:

[Link] 3/52
7/25/22, 1:56 PM 6 Ways to Fix Dates Formatted as Text in Excel • My Online Training Hub

Step 1 of the Wizard: Choose ‘Delimited’

Step 2 of the Wizard: uncheck all Delimiters (just to be safe)

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

Jan 2 2014 etc.

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:

Wednesday, January, 1, 2014

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.

VALUE and SUBSTITUTE Functions


If you prefer a formula solution to the Find & Replace or Text to Columns options above,
then you can use the VALUE function with SUBSTITUTE on stubborn dates that use
delimiters like decimals:

[Link] 4/52

Common questions

Powered by AI

Text to Columns might be insufficient when dealing with date formats that include textual names or multiple kinds of separators, such as 'Wednesday, January 1, 2014'. In these cases, alternative strategies include pre-processing the text with Excel functions like SUBSTITUTE to standardize delimiters, using Find & Replace for initial simplifications, or using formula-based approaches like combining VALUE with SUBSTITUTE for more precise control .

A user might choose to use Excel’s Find & Replace as it is a straightforward and quick method for correcting simple date format issues involving basic delimiter changes. This technique is user-friendly and does not require knowledge of formulas, making it accessible for users who need a rapid solution without dealing with the complexities of Excel functions .

Text to Columns is limited when faced with highly intricate or non-standard date formats, such as those that include day names or multiple commas. Users can mitigate these by integrating the tool with other Excel functions such as DATE, or by pre-processing the text using Find & Replace to substitute complex delimiters with more straightforward alternatives before completing the conversion with Text to Columns .

For complex date transformations, combining functions such as VALUE with SUBSTITUTE may be more effective than using tools like Text to Columns. These functions provide greater flexibility and precision in addressing multiple delimiter types and non-standard formats directly in formulas, allowing for custom solutions tailored to specific data quirks .

One method is to use the Find & Replace function. You can replace delimiters like decimals with slashes, converting the text string into a serial date number. Another method is to use Text to Columns by selecting the text-formatted dates, choosing 'Delimited' in Step 1 of the wizard, ensuring all delimiters are unchecked in Step 2, and selecting the correct date format in Step 3 to finish the process .

By applying the DATE function after initially processing data with Text to Columns, users can overcome complex format limitations like day names and multiple commas. This approach leverages Text to Columns for initial delimiter sorting while the DATE function orchestrates precise reconstruction of the date values from rearranged components, filling gaps that Text to Columns alone cannot manage .

The VALUE function, when used with the SUBSTITUTE function, simplifies converting date strings by replacing existing delimiters in the string with standard date separators that Excel recognizes. This combination allows the transformation of stubborn date formats into recognizable serial numbers, thereby circumventing the limitations of basic text-to-date conversion methods .

The Text to Columns tool is versatile because it allows the user to specify the exact format of the date string, accommodating various delimiter types such as hyphens, spaces, or decimals. This tool can reformat dates by guiding the user through a wizard that specifies delimiters and date formats, allowing the transformation of complex strings such as 'Wednesday, January 1, 2014' into usable date formats. Despite its flexibility, some very complex date formats may still require additional effort, possibly involving other functions like DATE .

Challenges include accurately targeting and replacing multiple delimiter types within the date strings. Addressing these challenges involves meticulously setting the 'Find What' criteria to cover all possible variations present in the data. Additionally, using combinations of Excel functions such as SUBSTITUTE for more refined adjustments might be necessary to ensure all format discrepancies are addressed efficiently .

The Text to Columns wizard contributes to user comprehension by providing a step-by-step interactive guide, allowing users to specify delimiters and select specific date formats from a drop-down menu. This design fosters understanding by breaking down the conversion process into manageable tasks, making it easier for users with varying levels of proficiency to achieve accurate data formatting .

You might also like