Sub topic 5
Group Dates by Year, Month, Quarter, or Weekday
This chapter assumes that you can navigate Google Sheets, write basic formulas, and create a pivot table. It also assumes that your source data has one header row, one record per row, and a date column containing real date values.
Date grouping turns individual dates into larger time categories. Instead of seeing separate rows for January 5, January 19, and February 2, you can summarize the data by month, quarter, or year.
Prepare the date column
Before creating a group, check that the date column contains dates rather than text that only looks like dates. A real date is stored as a number with a date format. It can be sorted chronologically and used in formulas.
The sample data has a Date column:
| Date | Region | Product | Units | Revenue | Cost |
|---|---|---|---|---|---|
| 2026-01-05 | West | Widget | 10 | 250 | 150 |
| 2026-01-19 | East | Widget | 4 | 100 | 60 |
| 2026-02-02 | West | Gadget | 7 | 420 | 245 |
| 2026-02-23 | South | Gadget | 3 | 180 | 105 |
| 2026-03-09 | East | Gizmo | 12 | 600 | 420 |
Select a date cell and check the formula bar. If the value behaves like text, convert it before building the pivot table. For example, if A2 contains an ISO date as text, this formula can convert it:
=DATEVALUE(A2)Format the result as a date, then use the converted column in the pivot table.
Create a pivot date group
- Select the source range, including its headers.
- Select Insert > Pivot table.
- Choose a new sheet or an existing location.
- In the pivot table editor, add
Dateunder Rows. - Add a numeric field, such as
Revenue, under Values. - Click or right-click a date item in the pivot table.
- Choose Create pivot date group.
- Select the time period that you need.
Google Sheets commonly provides Year, Quarter, Month, Week, and Day. Some versions also provide Day of week. The exact choices can vary by account and interface version.
The pivot table then replaces individual dates with grouped labels. For example, grouping by month can produce January 2026, February 2026, and March 2026. Revenue is summarized for every month.
Choose the correct time level
Use the time level that matches the question:
| Question | Useful group |
|---|---|
| How did performance change over several years? | Year |
| Which business period performed best? | Quarter |
| What were monthly sales? | Month |
| How much was sold in each calendar week? | Week |
| Which weekday has the most activity? | Day of week, when available |
A month group can combine January from multiple years if the pivot table does not preserve the year as a separate level. To avoid mixing years, add Date to Rows and create a hierarchy with Year above Month, or filter the source data to one year.
Quarter groups have the same issue. Quarter 1 from different years can be combined unless Year is also included. Check the row labels before interpreting the totals.
Group by weekday
A weekday group answers questions such as “Which day usually has the most orders?” If the date-group menu includes Day of week, select it. The pivot table will place Monday, Tuesday, and the other weekdays into categories.
If Day of week is not available, add a helper column to the source data. A helper column is an extra column that calculates a useful label from existing data. For a date in A2, use:
=TEXT(A2,"dddd")Fill the formula down, then use this new column as the pivot table’s row field. Sort the weekday labels manually if they appear alphabetically instead of Monday through Sunday.
> callout note > Always compare grouped totals with the ungrouped pivot table. The grand total should remain the same. Only the labels and number of rows should change.
Troubleshoot date groups
If Create pivot date group is missing, inspect the source column for blank cells, mixed formats, or text dates. Replace blank dates or exclude incomplete records from the source range. Confirm that the pivot table uses the corrected date column.
If dates appear in the wrong order, sort the source values or verify their regional interpretation. A value such as 03/04/2026 can mean March 4 or April 3 depending on the locale.
Exercise
Your pivot table has separate rows for January 2026 and January 2027, but you need one total for each month name. What should you check before interpreting the result?
Show answer
Check whether the pivot table includes Year as a separate row level. Remove that level only if combining the two years is intentional, and verify that the resulting January total equals the sum of both yearly January totals.