How to Sort Dates in Excel Chronologically
In this article
Sorting dates chronologically in Excel is quick: select your data, then use Home > Sort & Filter > Sort Oldest to Newest (or Newest to Oldest). The one catch is that Excel only sorts dates correctly when they are stored as real dates, not as text — so if sorting seems random, that's the first thing to fix.
What You'll Need
- A spreadsheet in Excel (desktop, Excel on the web, or the Excel mobile app)
- Dates entered in a single column
- Each row representing one record (for example, one date per transaction), if you want related data to move with the dates
Step-by-Step
- Click any single cell inside your date column. Don't select the whole column header-to-bottom; one cell inside the data is enough for Excel to detect the surrounding table.
- Go to the Home tab on the ribbon and, in the Editing group, click Sort & Filter. Exact labels can differ slightly between Excel versions and platforms, but this button has been in the same place for years.
- Choose Sort Oldest to Newest for chronological order (earliest first), or Sort Newest to Oldest for reverse chronological order.
- If Excel shows a Sort Warning dialog asking what to do with your selection, choose Expand the selection and click Sort. This keeps each row's other data together with its date.
- Check the result. The earliest date should now be at the top (or the bottom, if you sorted newest first).
- For more control, use a custom sort instead: select a cell in the data, go to Data > Sort, choose your date column under Column, set Sort On to Cell Values, and pick Oldest to Newest under Order. This dialog also lets you add multiple levels — for example, sort by date, then alphabetically by name within the same date.
For a quick alternative, press Ctrl + A to select the current region, then use the Data tab's A-Z sort buttons; with real dates, the A-Z (ascending) button sorts oldest to newest automatically.
Common Mistakes
- Dates stored as text. If dates are left-aligned and sorting produces nonsense order (for example 1/15/2024 before 3/2/2023), Excel sees them as text, not dates.
- Sorting only the date column. If you select just the dates and sort without expanding, your dates detach from their rows and your data becomes corrupted. Always expand the selection or use one cell inside a proper table.
- Mixed date formats. A column with some cells as text dates (imported from a CSV or another system) and some as real dates will never sort correctly until the text ones are converted.
- Hidden rows. Excel sorts hidden rows along with visible ones, which can make the result look wrong if you're filtering.
- Headers included in the sort. If your header row gets sorted into the data, you forgot to tell Excel your data has headers. In the Data > Sort dialog, tick My data has headers.
Tips
- Convert your range to an official Excel table (select the data and press Ctrl + T). Tables remember headers, expand automatically, and keep rows intact when sorting via the filter dropdown arrows in the header.
- Use the filter dropdown arrow in a table's date column header — it offers date grouping and quick sort options without touching the ribbon.
- After importing dates from a CSV or text file, use Data > Text to Columns, choose Delimited, click Next twice, then select Date under Column data format and pick the format matching your source (MDY, DMY or YMD). This converts text dates to real dates in one pass.
- Check alignment as a quick health test: real dates default to right-aligned, text to left-aligned.
- To reverse a sort you just did, press Ctrl + Z immediately — Excel doesn't otherwise remember the previous order.
Troubleshooting
Sky-high or nonsense order after sorting? Your dates are text. Convert them: select the column, run Data > Text to Columns with the Date option as described above, or for a single column click the warning icon that appears beside selected text dates and choose Convert to Number where offered. Then sort again.
Dates display as serial numbers (like 45292)? The cells are real dates but formatted as numbers. Select the cells, go to Home > Number Format dropdown, and pick Short Date or Long Date.
Sort is greyed out? The sheet is probably protected. Go to Review > Unprotect Sheet (you may need the password from whoever protected it), or ask the file owner for an unprotected copy.
Dates from another locale look wrong? A file created in a region using day/month/year may import with months and days swapped. Fix the source format during Text to Columns, or re-enter ambiguous dates manually.
Merged cells block sorting. Excel refuses to sort ranges containing merged cells. Unmerge them via Home > Merge & Center to toggle it off, then sort.
Frequently Asked Questions
Why are my dates sorting by month and day but ignoring the year?
They're stored as text. Text dates sort alphabetically, so Excel compares them character by character instead of by actual date value. Convert them to real dates using Text to Columns, then sort again.
How do I sort by date but keep rows together?
Can I sort dates newest to oldest instead?
Yes. In Home > Sort & Filter, pick Sort Newest to Oldest, or choose that option in the Data > Sort dialog.
Does sorting work the same in Excel on the web and mobile?
Yes, the core behavior is the same. In the mobile app, select the data, open the menu, and look for the Sort option; exact placement varies by device, but chronological sort works once the dates are real dates.
How do I sort by date and then by a second column?
Use Data > Sort, set the first level to your date column, click Add Level, and set the second level to the other column. Excel applies the levels in order.
Will sorting change my formulas?
Formulas that reference cells with absolute references (like $A$1) stay put, but relative references move with their rows. Check any summary formulas after sorting a sheet that contains calculations.