When Excel refuses to sort a column by date, the column almost certainly contains text that only looks like dates. Excel sorts text alphabetically, so "01/02/2026" can land next to "May" with no error. The fix is to convert those values into real date serial numbers, then sort again. A quick test tells you which case you have: select the column and check whether the cells are left-aligned (usually text) or right-aligned (usually real numbers or dates). If they are left-aligned, read on. If they are right-aligned but sorting still misbehaves, jump to the troubleshooting section.

Labels and options can differ slightly between Excel for Microsoft 365, Excel 2021, Excel for Mac, Excel on the web and the mobile apps, so treat menu names below as a guide and look for the closest match on your version.

What You'll Need

  • A workbook with the date column you want to sort, and permission to edit it. Keep a copy of the file before you convert anything.
  • A clear idea of the date format your data actually uses, for example day/month/year or month/day/year, and the format your Windows region expects. Mismatches between the two are the single most common cause of the problem.
  • An empty helper column beside the data if you want to convert values without overwriting the originals on the first attempt.
  • Excel for desktop is best for this. The mobile apps can sort, but the conversion tools described below are far easier on a computer.

Step-by-Step

  1. Select the whole table, not one column. Click any cell inside the data and press Ctrl+A (Cmd+A on Mac), or select the exact range. Sorting only a single column is what scrambles rows, so make sure Excel treats the whole block as one range.
  2. Confirm the header row is recognised. Go to the Data tab and click Sort. In the dialog, tick "My data has headers" if your first row holds labels. Without that tick, Excel sorts the header into the data.
  3. Test one suspect cell. In an empty cell type =ISNUMBER(A2) (replace A2 with a date cell). A result of TRUE means Excel sees a real date or number. FALSE means it is text, which is why the date sort does nothing useful.
  4. Check for a leading apostrophe or stray spaces. Click a problem cell and look at the formula bar. A leading apostrophe forces text. Use Find and Replace (Ctrl+H) or TRIM to strip leading and trailing spaces, which also stop Excel from recognising dates.
  5. Try a text-to-columns conversion. Select the date column, go to Data > Text to Columns, click Next twice to reach step 3, choose the Date option and pick the order that matches your data (DMY, MDY, YMD), then click Finish. This is the fastest reliable fix for imported CSV dates in day/month format.
  6. Or use a helper formula. In a new column type =DATEVALUE(A2) or, for scrambled layouts, =DATE(RIGHT(A2,4),MID(A2,4,2),LEFT(A2,2)) adapted to your format. Fill down, copy the results, then paste them back over the original column using Paste Special > Values. Delete the helper column afterwards.
  7. Confirm the format. With the converted column selected, press Ctrl+1, choose Date and pick a format. The values should now right-align.
  8. Sort properly. Select the full table, open Data > Sort, choose your date column under Sort by, set Sort On to Cell Values and Order to Oldest to Newest or Newest to Oldest. If the column still offers only A to Z and Z to A, Excel has not accepted the values as dates.
  9. Sort inside a filtered table too. If you use filters, click the filter arrow on the date column and choose Sort Oldest to Newest. Filtered tables keep their filter but can leave hidden rows behind, so clear filters first if the result looks odd.

Common Mistakes

Sorting a single column. If you select only the dates and hit sort, Excel asks whether to expand the selection. Answering "Continue with the current selection" detaches the dates from their rows and leaves you with mismatched data. Always sort the whole table.

Trusting the display. A cell formatted as Date can still hold text. Formatting changes appearance, not the underlying value, so the ISNUMBER test matters more than what you see.

Wrong date order on import. If your file uses day/month/year but Windows is set to month/day/year, Excel flips or rejects dates. Check the Regional Format setting in Windows Settings > Time & Language > Language & Region before importing. On a Mac, check System Settings > General > Language & Region.

Ignoring times. Dates with times still sort correctly as long as they are true date serial numbers, but mixing real dates with text-formatted times produces nonsense order. Convert both.

Merged cells and blank rows. These break sorting silently. Unmerge cells and delete genuinely blank rows within the range first.

Tips

  • Store dates as real dates from the start. Entering them with a consistent separator and letting Excel parse them avoids nearly all of these problems.
  • Keep a separate helper column for the original text so you can compare results before overwriting anything.
  • Use Data > Filter on the date column and look at the grouping: real dates group by year and month, while text shows plain alphabetical entries. That is a one-second diagnostic.
  • If you regularly import the same file, use Data > Get Data > From Text/CSV and set the column type to Date in the import wizard, so the conversion happens automatically on refresh.
  • When sharing a workbook across regions, add an explicit date format column rather than relying on default display, which changes with each user's settings.

Troubleshooting

The sort produces only A to Z options. Excel still reads the column as text. Repeat the text-to-columns or DATEVALUE conversion, then recheck with ISNUMBER.

Some dates convert, others become errors or blanks. Those rows use a different separator or a two-digit year with an ambiguous value. Fix them one format at a time, or split the column and rebuild with DATE.

Values like 45000 appear instead of dates. That is a real date serial shown with General formatting. Press Ctrl+1 and apply a Date format.

Dates from another system look like 20260115. That is a text string, not a date. Extract year, month and day and rebuild with DATE, or use Text to Columns with the YMD option.

The order is still wrong after sorting. Check for trailing spaces, non-breaking spaces pasted from websites, or hidden apostrophes. TRIM and CLEAN help. Also confirm no filter is hiding rows and that the range covers the whole table.

Sorting rearranges the wrong things. Undo immediately with Ctrl+Z, then re-select the entire table before trying again.

Frequently Asked Questions

Why does Excel sort my dates alphabetically?

Because the cells hold text. Excel sorts text character by character, so day names or numeric strings fall into alphabetical order instead of chronological order. Converting to real dates fixes it.

Does changing the cell format to Date fix sorting?

No. Formatting only changes how a value looks. If the underlying value is text, it stays text and still sorts alphabetically.

Can I sort dates in Excel on the web or mobile?

Yes, basic sorting works, but conversion tools such as Text to Columns are easier on the desktop app. Convert on a computer, then sort wherever you like.

Why do my dates show as numbers?

Excel stores dates as serial numbers counting from a fixed starting point. Apply a date format to display them as dates again.

Will fixing the dates change my original file?

Only if you overwrite the cells. Work in a copy or a helper column first, so you can compare and revert.