EXCEL · PIVOT TABLE GUIDE
How to group dates by month in a pivot table
Short answer: In Excel, right-click a date in the pivot table and choose Group, then Months and Years. In Google Sheets, right-click a date and choose Create pivot date group, then Year-Month.
Put a date field straight into a pivot table and you get one line for every day, which is rarely what you want. Grouping turns those days into months, quarters or years so you can see a trend.
In Excel
- Put the date field in Rows or Columns. Recent versions of Excel may group it automatically into Years, Quarters and Months.
- If it doesn’t, right-click any date in the pivot table and choose Group.
- Select Months and also Years, then select OK. Choosing Years as well keeps January 2025 apart from January 2026.
To undo it, right-click a date and choose Ungroup.
In Google Sheets
- Add the date field to Rows or Columns.
- Right-click a date in the pivot table and choose Create pivot date group.
- Pick Year-Month, or Year-Quarter for quarters.
In the NetPivotal builder
Date columns are spotted automatically and grouped by month as soon as you use them. A Group by box lets you switch to quarter, year or the exact date. Dates can be written as 2026-03-14, 14/03/2026 or 14 Mar 2026, and dates with slashes are read day first.
Group six months of expenses by monthOpens the free pivot table builder with sample data→“Cannot group that selection”
Excel shows this when at least one cell in the date column is not a real date. The usual causes are:
- Dates stored as text, often after importing a CSV. They tend to sit on the left of the cell instead of the right.
- A blank cell or a word like “TBC” in the date column.
- Dates written the American way (month first) in a UK copy of Excel, or the reverse.
Fix the source cells, for example with Data, then Text to Columns, choosing a Date format, and refresh the pivot table. The builder puts values it can’t read under “(not a date)” so you can find them.