Grouping dates by month turns a row for every day into one row for each month, with totals that add up the matching entries. Once the dates are set up correctly, it takes only a few clicks.
If you haven’t built a pivot table yet, start with how to make a pivot table in excel. Then come back here.
Check that Excel sees real dates
Grouping only works on real dates. Excel stores a date as a number and displays it in a date format. Text that looks like a date won’t group. A quick check is alignment: real dates usually sit on the right side of a cell, and text usually sits on the left. If your dates are text, fix them first. The steps are in excel not recognizing dates as dates.
Group the dates by month
- Click any date in the pivot table’s row labels.
- Go to the PivotTable Analyze tab and choose Group Selection. Right-clicking the date and choosing Group also works.
- In the Grouping dialog, select Months. Clear any other unit you don’t want.
- Click OK.
The pivot table now shows a Months field in place of the individual dates, and the months run in calendar order. Drag the amount you want to total into the Values area.
Add years when the data spans more than one year
Grouping by month alone combines the same month from different years. January 2025 and January 2026 would land in one January row. To avoid that, select both Years and Months in the Grouping dialog. Excel then creates a Years field and a Months field, so each month appears once per year.
Automatic grouping in newer versions
In some versions of Excel, adding a date field to the Rows area groups it automatically into years, quarters and months. If you’d rather group the dates yourself, turn off automatic grouping of date and time columns in PivotTables. You’ll find that setting under File, Options, Data.
Undo the grouping
To go back to individual dates, right-click any grouped item and choose Ungroup.
Watch for cells that aren’t real dates
Any cell that isn’t a real date won’t group into a month, so check the column before you build the report. A typo, a blank cell or a date entered as text will sit outside the grouping. For more on dates in general, see how to work with dates in excel.