Excel dates will not sort correctly: check text values before changing the format
Diagnose mixed date types, convert a small sample safely, and keep each date attached to the correct project or client row.
When an Excel date column sorts into an unexpected order, first check whether every entry is a real date value. A date-looking text string can sit beside a numeric date without looking obviously different. Changing the display to a date format is not a reliable way to convert mixed data.
In this guide
Excel for Microsoft 365 on Windows and Excel for the web. The DATEVALUE function also exists in supported Mac desktop editions, but Mac menu paths are not covered here. English formula names; date interpretation depends on regional settings. Documentation reviewed, not hands-on tested.
Check the values before sorting again
Save a copy before changing anything. Include the whole record in your inspection: a deadline, project name, and invoice number must still refer to the same row after sorting.
Identify the failing group
Look at a few rows near the point where the order goes wrong. Did they come from a different export, use a different month/day convention, or arrive through copy and paste? Use an untouched source to confirm what the dates mean.
For a candidate date in A2, enter =ISNUMBER(A2) and =ISTEXT(A2) in two unused cells. Microsoft's IS-function reference explains that these checks inspect the stored value without converting numeric-looking text.
| ISNUMBER | ISTEXT | What to check next |
|---|---|---|
| TRUE | FALSE | A numeric value: confirm it represents the intended date before sorting |
| FALSE | TRUE | Text: try the small conversion sample below |
| FALSE | FALSE | Inspect for a blank, an error, or another value type first |
A numeric result is not proof of the correct calendar date. Compare it with the source, especially where month and day can be confused.
Microsoft states that chronological sorting requires dates stored as date serial numbers. Its sorting guide also warns that sorting an isolated part of a larger range can separate it from related data.
Avoid sorting only the date cells. Select the complete record range, or work within an Excel table. In Windows desktop Excel, use Data → Sort, choose the date column and the oldest-to-newest order, and verify that the header setting matches your data. If prompted about adjacent data, include the related columns.
Convert a small sample in a helper column
For a text date in A2, enter =DATEVALUE(A2) in an unused column. Apply a date number format to the result so that you can inspect it. Microsoft's text-date conversion guide covers this helper-column approach.
Try several representative rows before filling down. If the result is wrong or shows an error, leave the original intact. A successful calculation alone does not prove that the intended date was understood.
Check ambiguous dates and timestamps
The text 04/05/2026 is ambiguous without a known date convention. Confirm its meaning with the system that generated the file before accepting a conversion. Microsoft's DATEVALUE reference notes that system date settings influence interpretation.
DATEVALUE also ignores time information. Do not use it alone to rebuild a column in which the order of events within a day matters. A missing year is another reason to stop: the function can supply the current year, which may be wrong for archived records.
After checking the helper results, sort the complete copied dataset by that column. Compare several project/date pairs against the untouched workbook, including the earliest and latest records. Keep the source column until that comparison is complete.
If the result still looks wrong
Record whether the problem appears in desktop Excel, the web version, or both. Prepare a small, anonymized workbook with the original strings and expected dates, then use Microsoft Support through the linked documentation. For organization-managed files, ask the owner about the export's regional convention before changing shared data.
Sources and review date
Official documentation consulted on 2026-09-20. Diagnostic suggestions are editorial guidance, not a promise of a particular result.
- Microsoft: Sort data in a range or table in ExcelChecked 2026-09-20
- Microsoft: Convert dates stored as text to datesChecked 2026-09-20
- Microsoft: DATEVALUE functionChecked 2026-09-20
- Microsoft: IS functionsChecked 2026-09-20
A step no longer matches your app? Report a correction with the guide URL and version you use.
Related fixes
Excel removes leading zeros: preserve IDs before you import or paste
Choose text storage for identifiers, distinguish display padding from missing data, and avoid silently changing long codes.
OneDrive files will not open offline: check availability before you travel
A visible filename is not proof of an offline copy. Check the file state, download only what you need, and distinguish Windows from Mac indicators.
Word or Excel still saves to OneDrive: check the file location, not just the default
Save a separate local copy, check whether Documents is backed up, and understand why the default setting does not move existing cloud files.