Excel Date Errors: Why They Happen & How to Fix Them
Marcus Rivera sent me a spreadsheet on a Thursday afternoon with one sentence: "The dates are wrong and I don't know why." No error messages. No red cells. Just a column of dates that sorted backwards, calculated wrong, and refused to change format no matter what he tried. The data looked fine. That's the thing about Excel date errors: the broken ones often look identical to the working ones.
After nearly two decades of daily Excel work, including a full decade of building date-driven financial reports, I've seen this specific flavor of confusion more than almost any other. The fix isn't complicated, but it requires understanding one fact about how Excel actually thinks about dates, and most tutorials skip that part entirely.
By the end of this walkthrough, you'll be able to diagnose whether your date is a formatting problem or a data problem, convert text-stored dates into real ones, clear hidden characters that silently break formulas, and handle the Power Query locale issue that trips up almost everyone working with imported data.
No add-ins required. Everything here uses tools already built into Microsoft Excel.
Here's the one concept worth locking in before we start: Excel doesn't store dates the way you see them. It stores a date serial number, an integer counting days from January 1, 1900. January 1, 1900 is 1. January 1, 2024 is 45,292. When you see "01/15/2024" in a cell, Excel is displaying the number 45,305 with a date mask over it. If the underlying value isn't a number (if it's text, or a number with a trailing space, or a format Excel doesn't recognize) the mask has nothing to work with. That's when things go wrong.
For a broader look at how date issues fit into the wider world of spreadsheet problems, my common Excel errors and troubleshooting guide covers the full error landscape with worked examples.
|
| What you see and what Excel stores are two different things. The format is just a mask over the number underneath. |
Step 1: Spot Whether Your Excel Date Error Is a Format Problem or a Text Problem
How to tell if a date is stored as text vs. a real date
Click on a cell that shows a date. Look at how it's aligned. Real dates in Excel right-align automatically, the same way numbers do. Text left-aligns. If your date is hugging the left side of the cell, Excel is reading it as text, not as a date serial number, and no amount of reformatting will fix that because the underlying value isn't a number to begin with.
To confirm, type =ISNUMBER(A1) in an empty cell, replacing A1 with your date cell. If it returns FALSE, you have a text-stored date. That's your starting point for Step 2.
If ISNUMBER returns TRUE but the date is still wrong, the problem is more likely a regional settings mismatch, covered below.
The silent day-month reversal you might be missing
This one is genuinely sneaky. If your system uses DD/MM/YYYY formatting (common in the UK, Australia, and most of Europe) but your data was entered in MM/DD/YYYY format, or vice versa, Excel may silently swap day and month without any warning or #VALUE! error.
Enter 02/01/2024. Depending on your locale, Excel might read that as February 1st or January 2nd. You'd never know unless you checked. Worse: once the day number exceeds 12, Excel can't interpret it as a month at all, so it stops treating the entry as a date entirely. The cell becomes an invalid date value stored as text, with no indication anything went wrong. That's the part most tutorials don't mention.
Step 2: Fix Excel Date Errors Caused by Text, Hidden Characters, and Regional Settings
Once you've confirmed what type of problem you're dealing with, the fix follows directly. Text-stored dates, hidden characters, and regional mismatches each need a different approach, so applying them in the wrong order just wastes time.
Clear hidden characters before you convert anything
Dates imported from external systems frequently carry leading or trailing spaces that are invisible to the eye. A cell that displays "01/15/2024" might actually contain " 01/15/2024" with a space before it. That space makes the entire value behave as text. DATEVALUE won't help. Text to Columns won't reliably help. The hidden character blocks every downstream fix.
Wrap your date values in TRIM before converting anything: =TRIM(A1). On any imported data, TRIM first, always. Paste the results as values into a clean column, then proceed.
Convert text dates using Text to Columns or DATEVALUE
With clean data, you have two solid options for converting an Excel date stored as text into a real serial number.
- Text to Columns is faster for a full column. Select the column, go to Data → Text to Columns, click through to Step 3, choose "Date" under Column data format, set the order (DMY or MDY depending on your source), and click Finish. Excel re-parses the text into real dates.
- DATEVALUE works cell by cell and gives you more control:
=DATEVALUE(TRIM(A1)). The result is a serial number, so format the output cell as a date afterward. This approach is easier to audit when only part of a column is affected. Note that DATEVALUE behavior can vary between Excel 2019 and Microsoft 365 with non-standard date strings, so test it on a sample before applying it to a full column.
For related formula errors that surface during conversion work, the guide to fixing #VALUE! errors in Excel covers the most common triggers in detail.
Match your date format to Windows Regional Settings
If your dates look right but calculate wrong, or if the day-month swap from Step 1 applies, the problem is likely a mismatch between Excel's date interpretation and your Windows Regional Settings. Go to Control Panel → Region and change the format to match how your dates are actually structured. Excel inherits this setting, and aligning them resolves the silent reversal without touching individual cells. Microsoft Support covers how to adjust Windows Regional Settings if you haven't done this before.
Step 3: Fix Excel Date Errors Inside Power Query Using Locale Settings
With your workbook dates sorted out, there's one more place date errors hide that catches people completely off guard: Power Query.
Power Query has its own date interpretation engine, and it doesn't automatically inherit your Windows regional settings or your Excel locale. It parses dates based on its own defaults, which means a column of DD/MM/YYYY dates imported from a European system can come through with day and month reversed and look perfectly plausible until someone notices that January sales figures are attributed to the wrong weeks.
The fix is the "Change Type with Locale" option. In Power Query Editor, right-click the date column header, choose "Change Type," then "Using Locale." Set the data type to Date and specify the locale that matches your source data, not your system. This resolves the Power Query date locale mismatch without touching any system-level settings, which matters if you're working on a shared machine or a corporate environment where you can't change regional settings.
Common Mistakes That Let Excel Date Errors Slip Through Even After You've Run the Fixes
Reformatting the cell before converting the value is the most common one. Changing the cell format makes the display look like a date, but if the underlying value is text, you've just put a date costume on a text string. ISNUMBER still returns FALSE. Formulas still break. Run the conversion first, then apply the cell format.
Using IFERROR to suppress a #VALUE! error on a broken date formula is a mistake worth calling out directly. IFERROR is a finishing tool, not a debugging tool. Wrapping a broken DATEVALUE formula in IFERROR doesn't fix anything: it hides the failure and lets bad data flow downstream silently. Fix the underlying issue first.
Two edge cases worth knowing: the Excel 1900 date system includes an intentional bug that treats 1900 as a leap year. February 29, 1900 doesn't exist, but Excel thinks it does (serial number 60). If you're doing date math near that boundary, rare but it happens in historical datasets, your calculations may be off by one day. And if your data moves between Excel and an older Mac-based workflow, the 1904 date system used in older Mac versions adds another layer of off-by-four-years confusion.
Last: if you've fixed everything in the workbook and dates still behave wrong in Power Query, remember that Power Query keeps its own locale setting. The workbook fix and the Power Query fix are separate steps. Both need to be done.
Reformat after you convert, never before. Almost every persistent Excel date error comes from someone who changed the cell format first and couldn't understand why nothing changed. The format is the display. The value underneath is what matters.
If you're newer to Excel and want to build a cleaner foundation before tackling errors like these, the Excel for beginners starter guide covers the core concepts that make troubleshooting like this much easier to follow.
Frequently Asked Questions
Why is Excel showing a number instead of a date?
Excel stores dates as serial numbers, integers counting days from January 1, 1900. When the cell format is set to "General" or "Number" instead of a date format, Excel displays the raw serial number. Select the cell, open Format Cells (Ctrl+1), and choose a date format from the Number tab to restore the display.
Why won't my Excel dates change format even after I reformat the cells?
If reformatting has no effect, the dates are almost certainly stored as text, not as real date serial numbers. Reformatting only changes how a number is displayed — it can't convert text into a number. Use ISNUMBER to confirm the issue, then use Text to Columns or the DATEVALUE function to convert the values first.
Why does Excel reverse the day and month in my dates?
This happens when Excel's date interpretation doesn't match the format of your source data, typically a mismatch between DD/MM/YYYY and MM/DD/YYYY. For worksheet data, adjust Windows Regional Settings or use Text to Columns with the correct date order specified. For Power Query, use Change Type with Locale and set the locale to match your source data.
Join the conversation