When Excel shows a number or text as-is instead of converting it to a date, it’s because the data is stored as text, not as a serial date value. Excel can’t perform date calculations or formatting on text strings—even if they look like dates. The fix is simple: convert the text to a proper date format using built-in tools. No add-ins or third-party software are needed.
What You'll Need
- Microsoft Excel (2010 or later)
- A column of date-like text (e.g., "2023-12-25", "12/25/2023", or "Dec 25, 2023")
- Access to the Data tab and Format Cells dialog
Step-by-Step
- Open your Excel file and locate the column containing the text dates. Ensure there are no blank rows or mixed data types (like text and numbers) in the same column.
- Select the entire column of text dates by clicking the column letter at the top (e.g., click "A" if your dates are in column A).
- Go to the Data tab on the ribbon, then click "Text to Columns" in the Data Tools group. Do not skip this step—even if the data looks clean, Excel needs to re-parse it.
- In the Convert Text to Columns Wizard, choose "Delimited" and click Next. Even if your data has no delimiters, this forces Excel to re-examine the format.
- On the next screen, uncheck all delimiters (Tab, Semicolon, Comma, Space, Other) and click Next. This tells Excel to treat the whole cell as one unit.
- On the final screen, under Column data format, select "Date". Then choose the correct order from the dropdown: YMD (for 2023-12-25), DMY (for 25/12/2023), or MDY (for 12/25/2023). Click Finish.
- After the conversion, check a few cells to confirm they now display as dates. If Excel displays ##### instead of a date, widen the column by double-clicking the column boundary.
- With the converted column still selected, right-click and choose "Format Cells".
- In the Format Cells dialog, under Number tab, select "Date" from the Category list. Pick your preferred date format from the Type list (e.g., March 14, 2023 or 14-Mar-2023), then click OK.
- Save your file. The dates are now real Excel date values and can be used in formulas like =TODAY()-A2 or sorted chronologically.
Common Mistakes
- Trying to change the cell format to "Date" without first converting the text. Excel won’t convert "Dec 25, 2023" to a date just by changing the format.
- Using Find and Replace to change hyphens to slashes. This doesn’t change the underlying data type—it remains text.
- Assuming that if a date displays correctly, it’s a real date. Some dates appear formatted but are still stored as text, causing errors in SUMIFS or VLOOKUP.
- Skipping the Text to Columns step and using Paste Special > Multiply or Add. This only works for numbers, not text strings resembling dates.
- Using regional date formats that don’t match your system locale. For example, entering 25/12/2023 on a US system (which expects MM/DD/YYYY) may fail to convert.
Tips
- Use =ISNUMBER(A1) to check if a cell is a real date. If it returns FALSE, it’s still text—even if it looks like a date.
- For large datasets, use Power Query (Data > Get & Transform) to import and convert text dates automatically with a few clicks.
- If your dates include time (e.g., "2023-12-25 14:30:00"), the Text to Columns method still works; just select "Date" and Excel will preserve the time portion.
- Always back up your file before bulk conversions. If Excel misinterprets a format, you can restore the original.
- Use =DATEVALUE(A1) to test if a text string can be converted. If it returns a serial number, the text is convertible; if it returns #VALUE!, the format is unsupported.
- For consistent imports, save CSV files with a .txt extension first, then use Text to Columns to control how Excel parses each column.
Troubleshooting
If Excel still won’t convert your text to dates after following the steps:
- Check for leading or trailing spaces. Use =TRIM(A1) in a new column to remove them, then copy and Paste Values back over the original.
- Look for non-breaking spaces or hidden characters. Use =CODE(LEFT(A1,1)) to check the ASCII value of the first character. If it’s not 32 (space), you have a hidden character. Use =SUBSTITUTE(A1,CHAR(160)," ") to replace non-breaking spaces with regular ones.
- Verify your system’s regional settings. Go to Windows Settings > Time & Language > Region > Regional format. Make sure it matches your date format (e.g., English (United States) for MM/DD/YYYY).
- If Text to Columns fails, try copying the column, pasting it into Notepad, then copying from Notepad and pasting back into Excel. This strips hidden formatting and often allows Excel to re-recognize the data.
- If you have mixed formats (some MM/DD, some DD/MM), Excel will misinterpret them. Clean the data by separating into different columns or use Power Query to parse each format separately.
- If all else fails, use a formula like =DATE(LEFT(A1,4),MID(A1,6,2),RIGHT(A1,2)) for YYYY-MM-DD format. Adjust the positions for your specific pattern.
Frequently Asked Questions
Why does Excel show numbers instead of dates after conversion?
Excel stores dates as serial numbers. If the cell format is General or Number, it shows the serial value (e.g., 45292). Change the format to Date to display it correctly.
Can I convert text dates to dates in Excel Online?
Yes. Excel Online supports Text to Columns and Format Cells the same way as desktop Excel. Use the same steps—you don’t need the full desktop app.
Why does =DATEVALUE() return #VALUE! even for what looks like a valid date?
The text contains unrecognized characters, inconsistent spacing, or uses a format not supported by your system locale. Check for typos, extra symbols, or non-standard abbreviations.
Can I convert multiple columns of text dates at once?
Yes. Select all columns before clicking Text to Columns. Excel will process each selected column independently using the same format settings.
Is there a keyboard shortcut to open Text to Columns?
There is no direct shortcut, but you can add Text to Columns to the Quick Access Toolbar for one-click access.
What if my dates are in a different language, like "Janvier 15, 2023"?
Excel may not recognize non-English month names unless your system locale matches the language. Use Power Query to replace month names with numbers before conversion, or use SUBSTITUTE formulas to map them manually.