Share via

sorting dates in Excel

tim moline 20 Reputation points
2026-02-10T02:25:38.33+00:00

following the thread: How do I sort dates by month in Excel, regardless of the year?

I have found that the year is peculiar. from the years 1900 to 2026, the equation result does delete the year. But try year 1899 and earlier, and the year appears in the result.

I also found that the format can be mmdd or ddmm. and I even added a dash going for dd-mm.

these all worked. but the year limitation throws me.

Microsoft 365 and Office | Excel | For home | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Q&A Assist
    2026-02-10T02:26:48.6733333+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    To sort dates by month in Excel regardless of the year, you can use a helper column to extract the month from your date values. Here’s how you can do it:

    1. Add a Helper Column: Next to your date column, create a new column that extracts the month from each date. You can use the formula =MONTH(A1) where A1 is the cell containing your date. Drag this formula down to fill the rest of the cells in the helper column.
    2. Sort by Helper Column: Once you have the month numbers in the helper column, you can sort your data based on this column. Select your data range, go to the Data tab, and choose Sort. In the Sort dialog, select your helper column and sort it in ascending or descending order as needed.
    3. Year Limitation: Regarding the year limitation you mentioned, Excel typically interprets dates based on the century cutoff of 2029. Dates entered with years before 1900 may not be recognized properly, which can lead to unexpected results when sorting. For example, dates from 1899 and earlier may show the year in the result due to how Excel handles two-digit year numbers.
    4. Date Formats: You can use various date formats like mmdd, ddmm, or dd-mm as you mentioned, but ensure that Excel recognizes them as dates for sorting to work correctly. If Excel treats them as text, sorting might not yield the expected results.

    By following these steps, you should be able to sort your dates by month effectively, while being aware of the limitations regarding years before 1900.


    References:

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.