Sorting a column so that records fall into chronological order sounds like the simplest task in Excel, yet how to sort by date on Excel remains one of the most searched spreadsheet questions in the world. Also, the reason is simple: Excel does not actually see your dates the way you do. On top of that, it sees numbers, and when a date is entered or imported as text, the sort order collapses into something meaningless — 1/2/2026 landing before 27/11/2024, or April appearing ahead of January. This guide walks through the correct method step by step, then fixes every common failure point, from dates stored as text to sorting by month only It's one of those things that adds up. Which is the point..
Why Excel Dates Behave Differently From Other Data
Every valid date in Excel is stored as a serial number. On the flip side, january 1, 1900 equals 1, January 1, 2026 equals 46023, and the decimal portion represents the time of day. The friendly format you see on screen — 12/03/2025 or 12-Mar-2025 — is only a display mask applied on top of that number.
It sounds simple, but the gap is usually here.
This has two important consequences:
- Genuine dates sort perfectly, because Excel is simply ordering numbers from smallest to largest.
- Text that looks like a date sorts alphabetically, because Excel treats it as a string of characters, not a value.
Almost every "Excel won't sort my dates" complaint traces back to this single distinction.
How to Sort by Date on Excel: The Standard Method
Step 1 — Select the full data range
Click a single cell inside your dataset and Excel will usually detect the surrounding block automatically. Day to day, for reliability, select the entire range including headers, for example A1:D500. Never select only the date column, or you risk scrambling the relationship between dates and their matching rows.
Step 2 — Open the Sort dialog
Go to the Data tab and choose Sort in the Sort & Filter group. The Sort dialog box appears.
Step 3 — Configure the sort
- Tick My data has headers so your column names appear in the dropdown.
- In Sort by, choose your date column, such as Invoice Date.
- In Sort On, leave the default Values.
- In Order, pick Oldest to Newest or Newest to Oldest.
Step 4 — Confirm and verify
Click OK. Check that the dates now descend or ascend logically and that each row still carries its original neighbouring values Easy to understand, harder to ignore. And it works..
Step 5 — Add a tiebreaker if needed
If several records share the same date, click Add Level, choose a second column such as Customer Name, and set its order. Excel applies the levels from top to bottom, so the date remains the primary key.
The Two Sort Shortcuts Worth Memorising
For a single-column sort, skip the dialog entirely:
- Select the date column, then Data → Sort Oldest to Newest (A→Z).
- Or Data → Sort Newest to Oldest (Z→A).
Keyboard users can press Alt + A, S, S for ascending and Alt + A, S, R for descending on Windows. If Excel displays a Sort Warning, choose Expand the selection — this keeps whole rows intact and is almost always the correct answer It's one of those things that adds up. Nothing fancy..
Sorting Inside an Excel Table
If your range is a formatted Table (created with Ctrl + T), sorting is even easier. Click the small arrow on the date header and select Sort Oldest to Newest. Tables automatically expand to include new rows, and the sort state persists, which makes them ideal for logs, trackers, and sales registers Not complicated — just consistent. Turns out it matters..
The Real Problem: Dates Stored as Text
How to confirm it in five seconds
- Text dates align to the left of the cell; true dates align to the right by default.
- Select the column and look for a small green triangle in the corner.
- Apply a number format such as Long Date. If nothing changes visually, the entry is text.
- Use
=ISNUMBER(A2).FALSEmeans Excel does not recognise it as a date.
Fix 1 — Text to Columns (best for large lists)
- Select the column.
- Data → Text to Columns.
- Choose Delimited, click Next, then Next again.
- Under Column data format, select Date and pick the matching order: YMD, DMY, or MDY.
- Click Finish.
This converts the whole column in one pass and is the fastest reliable repair for imported CSV data.
Fix 2 — A helper formula
Use =DATEVALUE(A2) for text dates, or =DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2)) for a yyyy-mm-dd string. Copy the result, then paste back as Values over the original column.
Fix 3 — Find and Replace
Select the column