Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Won't Sort Dates Oldest to Newest? Fix It

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Excel won't sort dates oldest to newest usually because the dates are stored as text, not real date values. Excel sorts text alphabetically, so "01/02/2024" may land before "03/01/2023" depending on the day and month order. The fix is to convert the column to real dates, then sort. This guide walks through checking the format, converting text dates, and sorting reliably.

What You'll Need

  • Excel on Windows or Mac (steps are for desktop; mobile Excel has a simpler sort menu but the same underlying rules).
  • The column of dates you want to sort, ideally with a header row.
  • A backup copy of the sheet before you convert or sort, in case something goes wrong.

Step-by-Step

  1. Check whether the dates are real dates. Select a date cell and look at the Number Format box on the Home tab. If it says "Text" or "General" and the value is left-aligned, it is likely stored as text. Real dates are right-aligned by default. You can also use =ISNUMBER(A2) in a blank cell: TRUE means a real date, FALSE means text.
  2. Make a backup. Right-click the sheet tab and choose Move or Copy, tick Create a copy, and click OK. Work on the copy.
  3. Convert text dates with Text to Columns. Select the date column (not the header). Go to Data > Text to Columns. Choose Delimited and click Next, then Next again. On the final screen choose Date and pick the order your text uses (MDY for month/day/year, DMY for day/month/year). Click Finish. Excel re-enters the values as real dates.
  4. Or use a formula. In a blank column, enter =DATEVALUE(A2) and fill down. Copy the results, then paste as Values over the original column. Delete the helper column.
  5. Fix a wrong date order. If your dates show day and month swapped, the regional date order is wrong. Go to File > Options > Advanced (Windows) or Excel > Preferences (Mac) and check the regional settings. On Windows you may need to change the system region in Control Panel. After changing, re-run Text to Columns with the correct order.
  6. Sort the column. Select the whole data range including headers. Go to Data > Sort. Tick My data has headers. In Sort by choose your date column, Sort On choose Values, Order choose Oldest to Newest. Click OK.
  7. Use the quick sort button. With a single date column selected, Data > Sort Oldest to Newest (the A-Z button with an arrow) works if there are no adjacent columns. If other columns exist, use the full Sort dialog so rows stay together.
  8. Verify the result. Check the first and last dates and a few in between. If the order still looks wrong, re-check step 1: at least one cell is probably still text.

Common Mistakes

  • Sorting only one column when other columns contain related data. Excel warns about this; always expand the selection or use the full Sort dialog.
  • Assuming a cell is a date because it looks like one. Left alignment and a Text format are the giveaway.
  • Using the wrong date order in Text to Columns (MDY vs DMY), which silently swaps day and month for dates where both are 12 or less.
  • Forgetting that dates with times sort by the time as well. If two dates look identical but sort oddly, the time value is the cause.
  • Leaving blank rows inside the range. Blanks can break the sort or push rows to the bottom unexpectedly.

Tips

  • Keep dates in one consistent format. Mixed formats in a column are the most common reason sorting fails.
  • Use a helper column with =ISNUMBER(A2) to find text dates quickly; filter for FALSE.
  • If you import dates from CSV, set the column type to Date during import rather than fixing it afterward.
  • For dates with times, sort by the full value, then use a helper column with =INT(A2) if you only want to sort by day.
  • Freeze the header row so you can confirm the sort kept headers in place.

Troubleshooting

  • Sort still does nothing. The column is probably text. Repeat the Text to Columns step and confirm the preview shows dates, not text.
  • Dates swap day and month. The regional date order is wrong. Change it in system settings, then re-run the conversion.
  • Some rows move, others don't. The range selection missed rows. Select the entire data block or press Ctrl+A inside the data first.
  • Sort greyed out. The sheet may be protected or the workbook shared. Unprotect the sheet via Review > Unprotect Sheet, or stop sharing.
  • Formula results won't sort. Formulas recalculate after sorting; if you need fixed order, copy the column and paste as Values before sorting.
  • Dates show as numbers like 45292. That is a real date with the wrong format. Select the column and apply a Date format from the Home tab.

Frequently Asked Questions

Why does Excel sort 01/02/2024 before 03/01/2023?

Because the values are text. Excel compares characters left to right, so "0" comes before "1" regardless of the actual date. Convert to real dates first.

Can I sort dates on Excel for iPhone or Android?

Yes, but the menu is simpler. Select the column, tap the sort icon, and choose ascending. The same text-versus-date rule applies, so check the format first.

How do I sort oldest to newest when dates include times?

Sort by the full date-time value; Excel uses the time as a tiebreaker. If you only want day order, add a helper column with =INT(A2) and sort on that.

Why is my date column left-aligned?

Left alignment is Excel's default for text. Real dates are right-aligned. Select the column and check the Number Format box; if it says Text, convert the values.

Does sorting break formulas that refer to the dates?

Relative references adjust to the moved cells, so results usually stay correct. Absolute references may point to the wrong cell after sorting; check any formulas that use $ references.

What if my dates are in a mix of formats like 1/2/24 and 2024-01-02?

Excel cannot interpret mixed formats consistently. Standardize them first, for example with Text to Columns using the correct order, or split the column and rebuild the dates with DATE.