To arrange dates in ascending order in Excel, click any date in the column, go to the Data tab and click Sort Oldest to Newest. Excel sorts the whole table by that column and keeps each row together. If the button shows Sort A to Z instead, or the order comes out wrong, your dates are stored as text, and you’ll need to convert them first. That fix, plus sorting by month for birthdays, is below.

Method 1: Sort Oldest to Newest
- Click a single cell in the date column. Don’t select the whole column.
- Go to Data > Sort Oldest to Newest (or Home > Sort & Filter).
Choose Sort Newest to Oldest for descending order. If a Sort Warning appears, pick Expand the selection so the other columns move with the dates.
Method 2: The Sort dialog
- Click in your data and go to Data > Sort.
- Tick My data has headers.
- Under Sort by, choose the date column.
- Under Order, choose Oldest to Newest.
- Click Add Level to sort by a second column, such as name, for rows with the same date.
- Click OK.
If the Order list shows A to Z rather than Oldest to Newest, Excel doesn’t see the column as dates. Multi-level sorts are explained in sorting by two columns in Excel.
Method 3: The SORT function
In Excel for Microsoft 365 and Excel 2021 or later, =SORT(A2:C100,1,1) returns a copy of the range sorted by its first column in ascending order. The original stays in place and the copy updates automatically.
Fix dates that won’t sort correctly
Dates imported from other systems are often text. Signs: they’re left-aligned, the status bar shows Count but no Sum, and =ISNUMBER(A2) returns FALSE.
Convert with Text to Columns
- Select the date column.
- Go to Data > Text to Columns, click Next twice.
- Choose Date and pick the order the dates are written in, such as MDY or DMY.
- Click Finish.
Convert with a formula
In a helper column, use =DATEVALUE(A2) and format the result as a date. For dates in a format Excel can’t read, such as 20260315, use =DATE(LEFT(A2,4),MID(A2,5,2),RIGHT(A2,2)). Then sort by the helper column. To control how the converted dates look, change the date format in Excel using a formula.
Sort birthdays or anniversaries by month and day
Sorting normally puts 1985 before 1990, regardless of month. To list birthdays in calendar order:
- Add a helper column with
=TEXT(A2,"mm-dd"). - Sort by the helper column, A to Z.
To sort by month only, use =MONTH(A2) instead.
Sort dates with times
Date-time values sort correctly as long as they’re real dates. If two entries share a date, the earlier time comes first. If times are in a separate column, add a second sort level for that column.
Troubleshooting
Some dates sort to the top or bottom on their own
Those cells are text while the rest are dates. Convert the column as above. Blank cells always go to the bottom.
Day and month are swapped
The data uses a different date order from your Windows region. Use Text to Columns and choose DMY or MDY to match the source.
Only the date column moved
You selected the column and chose Continue with the current selection. Press Ctrl + Z, click one cell, and sort again.
Frequently asked questions
How do I sort names alphabetically instead?
Click a name and use Sort A to Z; more options are in putting Excel in alphabetical order.
How do I add days to dates?
The formulas are in adding dates in Excel.
Summary
- Click a date, then Data > Sort Oldest to Newest.
- Use Data > Sort for a second level.
- If it sorts A to Z, convert text to dates with Text to Columns.
- Use
=TEXT(A2,"mm-dd")to sort birthdays by month and day.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.