Dates and Times

Why Excel Is Not Recognizing Your Dates

Why Excel treats some dates as text, how to spot them by alignment, and fix them with Text to Columns, DATEVALUE or DATE and a cleanup formula.

On this page
  1. How to tell whether a date is text
  2. Day and month order
  3. Imports and pasted data
  4. Hidden spaces and non-printing characters
  5. Fix a column with Text to Columns
  6. Fix with formulas
  7. Check the result
  8. Where to go next

Excel reads a date as a date only when it recognizes the text you typed or imported. When it doesn’t, the entry stays text. Text can look right on screen, but it won’t sort by date, it can break date math, and some formulas return errors.

How to tell whether a date is text

  • Alignment. Real dates and numbers align right by default, and text aligns left. A date on the left is probably text.
  • ISNUMBER. =ISNUMBER(A2) returns TRUE for a real date and FALSE for text.
  • Sorting. Text dates sort alphabetically, so 12/1/2026 can land before 3/14/2026.
  • Errors. A date that Excel can’t read at all makes date math return #VALUE!.

Day and month order

Region settings decide whether 04/05/2026 means April 5 or May 4. If a file was made with a different setting, its dates may be wrong, not just text. A first number above 12, such as 13/04/2026, can’t be a month in a US setting, so the entry stays text. In a UK setting, the same text is a valid date.

Imports and pasted data

Text from a web page, an email or a CSV file often arrives as text. Typing an apostrophe before a date, such as ’3/14/2026, also forces text. Remove the apostrophe, then convert the value.

Hidden spaces and non-printing characters

Spaces at the start or end of an entry, and non-breaking spaces copied from web pages, can stop a date from being recognized. For a value that looks right but still fails, clean it first. This formula removes extra spaces and non-printing characters, and it turns non-breaking spaces into normal ones:

=TRIM(CLEAN(SUBSTITUTE(A2,UNICHAR(160),” “)))

The steps for other hidden characters are in remove non printing characters in excel.

Fix a column with Text to Columns

Text to Columns converts a whole column in one pass:

  1. Make a copy of the sheet first, because the conversion changes the cells in place.
  2. Select the column, then choose Data and Text to Columns.
  3. Choose Delimited, then Next. Clear every delimiter box, then choose Next.
  4. Under Column data format, choose Date, and pick the order that matches your entries: MDY, DMY or YMD.
  5. Select Finish.

Fix with formulas

DATEVALUE converts text that Excel can read as a date into a date value:

=DATEVALUE(A2)

Format the result as a date. DATEVALUE follows your region settings, so it can fail on text written in a different day and month order.

For a fixed pattern such as 20261124, use DATE with LEFT, MID and RIGHT:

=DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2))

If the value is a number stored as text rather than a date, how to convert text to number in excel covers the general approach.

Check the result

Confirm that ISNUMBER returns TRUE, that the dates align right, and that sorting puts them in date order. If a few entries still fail, look at them one at a time. Dates before January 1, 1900, and text with extra words, such as “Week 12”, can’t be converted by these steps and need to be rebuilt by hand.

Where to go next

Clean up the source where you can. If the same export keeps arriving as text, the fix belongs in the export or the import settings, and a conversion step is the backup.

The complete guide to dates and times

How to Work With Dates in Excel
Read the guide

Keep exploring

Guides from other topics

All topics →