How to Arrange Dates in Ascending Order in Excel
In this article
Sorting dates from oldest to newest is one of the most common Excel tasks, whether you're organizing a project timeline, a sales log, or a personal schedule. This guide walks you through the correct steps to sort dates in ascending order, and it covers what to do when Excel doesn't sort the way you expect.
What You'll Need
- Microsoft Excel (2016 or later, or Excel for Microsoft 365; the steps are similar in Google Sheets).
- A worksheet containing a column of dates. The dates should be entered as actual date values (e.g., 01/15/2024), not as text (e.g., "Jan 15, 2024" or "15/01/2024" if Excel doesn't recognize it).
- If your data has headers, make sure the top row contains labels (e.g., "Date") so you can tell Excel to keep the header row in place.
Step-by-Step
- Open your Excel workbook and navigate to the worksheet that contains the dates you want to sort.
- Select the entire data range that includes the date column and any adjacent columns that should move together. For example, if you have columns A (Date) and B (Amount), select both columns A and B, from the first data row to the last. If you have a header row, include it in the selection.
- Go to the Data tab on the Excel ribbon. It's usually between the Formulas and Review tabs.
- Click the "Sort Oldest to Newest" button. This icon looks like a small A-to-Z arrow with a calendar, and it's in the "Sort & Filter" group. If you have multiple columns, Excel will prompt you to choose whether to expand the selection or continue with the current selection. Choose "Expand the selection" to keep all related data together, then click "Sort."
- If you have a header row, Excel will automatically detect it and exclude it from sorting. If it doesn't, click the "My data has headers" checkbox in the Sort dialog box that appears.
- Verify the result. Your dates should now be arranged from the earliest (oldest) to the latest (newest). If the dates are not in the expected order, check for common issues (see Troubleshooting below).
Common Mistakes
- Sorting only the date column without selecting adjacent columns. This scrambles your data, making rows inconsistent.
- Dates stored as text. If your dates are left-aligned in the cell, they are likely text, not real dates. Sorting text puts them in alphabetical order, not chronological order.
- Mixed date formats. For example, some cells have "01/15/2024" and others have "15/01/2024". Excel may treat them inconsistently.
- Hidden rows or filtered data. Sorting can behave unexpectedly if you have filters applied or hidden rows.
- Not using the "Expand the selection" option when prompted, which can lead to data misalignment.
Tips
- Use a dedicated date column and enter dates using the date format your locale expects (e.g., MM/DD/YYYY for US, DD/MM/YYYY for UK).
- Convert text dates to real dates using the DATEVALUE function. For example, if cell A2 contains "Jan 15, 2024", use =DATEVALUE(A2) and fill down, then copy and paste as values.
- Use a Table (Insert > Table) for your data. Tables automatically expand the selection when sorting, and they keep formulas and formatting consistent.
- Sort by multiple columns if you have duplicate dates. Use the Sort dialog (Data > Sort) and add levels to sort by date first, then by a secondary column (e.g., time or name).
- Always check for a header row before sorting. If you don't have one, Excel might sort your header as if it were data.
Troubleshooting
- Dates are not in order after sorting: Check if some cells contain text that looks like dates. Use the "Text to Columns" feature (Data > Text to Columns) to convert text to dates. Select the date column, go to Data > Text to Columns, choose "Delimited", then "Next", uncheck all delimiters, "Next", choose "Date" and select the format (e.g., MDY), then "Finish".
- Excel sorts by year only: This happens when dates are stored as text in a non-standard format. Convert them to real dates as above.
- Sort dialog doesn't show the "Oldest to Newest" option: In the Sort dialog, under "Order", you can choose "Oldest to Newest" from the drop-down. If it's not there, your column might be text; convert it.
- Header row is being sorted: In the Sort dialog, check the "My data has headers" checkbox. If it's already checked and still sorting, make sure the header cell contains text (e.g., "Date") and not a date value.
- Sorting a filtered list: Clear all filters (Data > Clear) before sorting, or sort within the filtered range only if you intend to sort only visible cells.
Frequently Asked Questions
Why does Excel sort dates as text?
Excel treats dates as numbers internally. If you see dates left-aligned, they are text. This often happens when you import data from a CSV or copy from another program. Convert them using Text to Columns or DATEVALUE.
How do I sort dates that are in different formats?
First, standardize them. Use Text to Columns to convert all to a consistent date format, or use the DATEVALUE function to create a helper column with real dates, then sort by that column.
Can I sort dates in ascending order using a formula?
Yes, you can use the SORT function in Excel 365: =SORT(A2:B10, 1, TRUE) sorts by the first column in ascending order. For older versions, you would need an array formula or a helper column with RANK.
What if I have blank cells in the date column?
Blank cells are sorted to the bottom when sorting ascending. If you want them at the top, you might need to use a custom sort or a helper column to assign a very early date to blanks.
How do I sort dates by month and day ignoring the year?
You can use a helper column with the formula =TEXT(A2,"MMDD") and sort by that text, or use =MONTH(A2)&DAY(A2) as a number.
Why does my date sort change the time portion?
If your dates include times (e.g., 01/15/2024 14:30), sorting ascending will order them by date first, then by time. If you only want to sort by date, you can remove times using =INT(A2) in a helper column.