How to Convert Text Dates to Actual Date Format in Excel
How to Convert Text Dates to Actual Date Format in Excel

If you’ve ever exported data from a software system into Excel, you may have encountered the frustrating problem of date columns being treated as text rather than actual dates. This issue can cause problems with sorting, filtering, and calculations. In this article, we’ll explore why this happens, provide real-world examples, and walk you through step-by-step solutions to convert text dates to actual date format in Excel.
Written By: Ada Codewell – AI Specialist & Software Engineer at Gray Technical
Why This Problem Happens
When dates are exported as text, it’s often due to the source system not properly formatting them as dates. Excel recognizes data types based on formatting, and if a date doesn’t look like “MM/DD/YYYY” or another recognized format, it may default to treating it as text.
This can be particularly problematic in reports that pull data from various sources, as inconsistencies in date formats can cause Excel to misinterpret the data. Fortunately, there are several ways to address this issue.
Real-World Examples
Example 1: Simple Date Format

Let’s say you have a column of dates that look like this:
A1: 01/01/2023 A2: 02/01/2023 A3: 03/01/2023
But Excel treats them as text. You can’t use these dates for calculations or sort them correctly.
Example 2: Mixed Date Formats

In another scenario, you might have dates in various formats:
A1: Jan 1, 2023 A2: 2023-02-01 A3: 03/01/2023
Each of these needs to be standardized to the same date format for consistency.
Example 3: Long Date Formats

Sometimes, dates come in long formats like:
A1: January 1, 2023 A2: February 1, 2023 A3: March 1, 2023
These can also be converted to a standard date format.
Step-by-Step Solution
Solution 1: Using the DATEVALUE Function

The DATEVALUE function can convert a date in the form of text to a serial number that Excel recognizes as a date.
- Select a new column where you want the converted dates to appear.
- Use the following formula, assuming your text dates are in column A:
=DATEVALUE(A1)
- Drag the formula down to apply it to all cells in the column.
- You can now format these cells as dates by selecting them and choosing a date format from the Home tab.
Solution 2: Using Text to Columns

If your dates are in a consistent format like “MM/DD/YYYY”, you can use the Text to Columns feature:
- Select the column with text dates.
- Go to the Data tab and click on “Text to Columns”.
- Choose “Delimited” and click Next.
- Uncheck all delimiters and click Finish.
- Now, format the column as a date using the Home tab.
Solution 3: Using Power Query

For more complex scenarios, Power Query can be very powerful:
- Select your data and go to the Data tab.
- Click on “From Table/Range” to load the data into Power Query.
- In Power Query, select the column with text dates.
- Go to the Transform tab and choose “Data Type” > “Date”.
- Close and Load the query back to Excel.
Advanced Variation: Using VBA for Complex Conversions

For those who prefer or need to use VBA, here’s a script that can convert text dates to actual dates:
Sub ConvertTextToDate()
Dim ws As Worksheet
Set ws = ActiveSheet
Dim cell As Range
For Each cell In ws.Range("A1:A" & ws.Cells(ws.Rows.Count, "A").End(xlUp).Row)
If IsDate(cell.Value) Then
cell.Value = CDate(cell.Value)
cell.NumberFormat = "mm/dd/yyyy"
End If
Next cell
End Sub
To use this script:
- Press Alt + F11 to open the VBA editor.
- Insert a new module by right-clicking on any of the items in the Project Explorer, then choosing Insert > Module.
- Copy and paste the above code into the module.
- Run the script by pressing F5 or going to Run > Run Sub/UserForm.
Common Mistakes and Misconceptions

Many users try to manually adjust each date, which is time-consuming and error-prone. Others rely on sorting or filtering, but this doesn’t change the data type.
Avoid these pitfalls by using one of the above methods to systematically convert your text dates to actual dates.
Conclusion

Converting text dates to actual date format in Excel is a common issue that can be efficiently solved using formulas, Power Query, or VBA. By standardizing your date formats, you’ll be able to work with your data more effectively and avoid the frustration of dealing with non-standardized date entries.
If you’re looking for a tool to enhance your Excel experience, consider CelTools, which offers over 70 extra features for auditing, formulas, and automation. It’s a powerful addition to any Excel user’s toolkit.
Written By: Ada Codewell – AI Specialist & Software Engineer at Gray Technical






















