Sub topic 10
Grouping Dates by Month, Quarter or Year
This chapter assumes that you can create a pivot table, add fields to Rows and Values, and recognize basic aggregations such as sum and count. You also need a source column containing actual Google Sheets date values, not date-looking text.
Why date grouping matters
A pivot table with one row for every date can be too detailed to read. Grouping the date field lets you summarize the same records by month, quarter, or year.
For example, a sales pivot table can show total revenue for each region and month:
| Region | January 2026 | February 2026 | March 2026 |
|---|---|---|---|
| West | 12,400 | 15,100 | 13,800 |
The grouping changes the labels and layout of the pivot table. It does not change the source records.
Check the date column first
Every value in the date column should be a valid date value. Google Sheets stores a date as a number formatted to look like a calendar date. Text such as 2026-01-15 may look correct but still behave as text if it was imported incorrectly.
Check the column before creating the pivot table:
- Make sure the column has one header, such as
Order date. - Remove blank rows inside the data range.
- Use consistent date values.
- Select the column and choose Format > Number > Date.
- Test a suspicious value with
=ISNUMBER(A2).TRUEindicates that Sheets recognizes the value as a number-based date.
If imported dates are text, convert them in a helper column:
=DATEVALUE(A2)Copy the results, paste them as values, and use the converted column in the pivot table.
Group a date field
- Open the pivot table editor.
- Under Rows, click Add and select the date field.
- In the pivot table, click a date value with the right mouse button.
- Choose Create pivot date group.
- Select Year, Quarter, Month, or another available period.
The pivot table replaces individual dates with grouped labels. To compare regions across periods, add Region under Rows and add the date field under Columns before grouping it.
A quarter is calculated from the calendar year:
| Quarter | Months |
|---|---|
| Q1 | January–March |
| Q2 | April–June |
| Q3 | July–September |
| Q4 | October–December |
Avoid common grouping errors
A group may include an unexpected blank or fail to appear when:
- Some dates are text and others are real date values.
- The source range includes blank or malformed rows.
- Dates contain times, so records that look like the same day have different underlying values.
- The pivot table uses a fiscal year, but the built-in grouping assumes calendar periods.
If you need fiscal quarters, create a helper column in the source data. For example, if the fiscal year starts in April:
="Q"&ROUNDUP(MOD(MONTH(A2)-4,12)/3+1,0)Use that helper column as a row field instead of the built-in quarter group. Test the formula at the fiscal-year boundary because custom calendars require explicit validation.
Exercise
A monthly pivot table shows some records under a blank row even though the source cells look like dates. What should you check first?
Show answer
Check whether those cells are text rather than real date values with ISNUMBER, then convert them and refresh or recreate the pivot group.