Google Sheets Pivot Table: Group Dates by Year
In this article
Yes. In Google Sheets, you can group dates in a pivot table by year by adding a date field to the pivot table, then grouping the dates by year. Select a date cell in the pivot table, right-click, and choose Create pivot date group > Year. If that option is unavailable, check that the source column contains real dates rather than text or mixed values.
Prepare the source dates
A pivot table can only group values reliably when Sheets recognizes the source entries as dates. A cell that looks like 2024-03-15 might actually be plain text, especially if the data was imported from a CSV or copied from another system. Dates may also be stored as date-and-time values, which can affect how records are displayed and grouped.
Before creating the pivot table, check the date column for blanks, notes, inconsistent formats, and text values. Select the column and use Format > Number > Date to apply a date display format. Formatting changes how a value appears; it does not necessarily convert text into a date. If a value remains left-aligned or does not respond to date formatting, convert or re-enter it as a genuine date before relying on grouping.
- Keep one clear header above the date field, such as Date.
- Use a consistent date interpretation. For example,
03/04/2024can mean March 4 or April 3 depending on locale. - Remove labels or explanatory text from the middle of the data range, since they can be interpreted as records.
- Make sure each row has the values needed for the summary, such as a date, category, and amount.
Create the pivot table
Select a cell in the source data, then choose Insert > Pivot table. Confirm the data range in the dialog, choose whether to place the pivot table in a new sheet or an existing sheet, and select Create. A pivot table editor appears, usually on the right. Under Rows, choose Add and select the date field. Under Values, add the number or measure you want to summarize, such as sales, units, or order ID.
For example, suppose the source has columns named Date, Region, and Sales. Add Date under Rows and Sales under Values. Sheets will summarize the sales for the date entries. To compare yearly totals by region, add Region under Columns or Rows as well, depending on how you want the report laid out.
Sheets typically summarizes numeric values by SUM when appropriate. If the result is not the measure you intend, open the field under Values and check its Summarize by setting. You can choose a different calculation, such as COUNT or AVERAGE, when the data supports it.
Group the pivot dates by year
Once the date field appears in the pivot table, click a date entry in the table itself. Right-click and choose Create pivot date group, then select Year. The exact menu is contextual: it appears when a date item in the pivot table is selected, not when you right-click an ordinary source-data cell. The pivot table then displays a year group instead of listing every individual date.
If you need detail beneath each year, you can add another date grouping where available, such as month, or keep a separate date field in the pivot layout. A year-only report is useful for annual totals; a year-and-month view is better for spotting seasonal changes. Avoid adding several levels before deciding what question the report should answer, since extra labels can make a pivot table harder to scan.
Grouping does not change the original dates. It changes how the pivot table organizes them. The source still contains the individual dates, and the grouped summary is recalculated from those records.
Choose a useful summary layout
Grouping by year is only one part of the report. Rows, columns, values, and filters determine what the yearly totals mean. A simple annual sales report might use Year in Rows and Sales in Values. A comparison of yearly sales by product might use Year in Rows, Product in Columns, and Sales in Values. A filter can limit the report to one region or a selected status.
- Rows: Put Year here for one line per year; add a category below it to see more detail within each year.
- Columns: Use a small set of categories, such as region or product type, to compare them across years.
- Values: Choose a measure and confirm whether it should be summed, counted, or averaged.
- Filters: Use these to narrow the report without changing the underlying source records.
Check the output against a few source records, especially when dates include times or the source has blank amounts. A pivot table is a summary, not a guarantee that the chosen calculation matches your business definition. For example, counting rows is not the same as counting unique customers.
Why year grouping may not appear
The most common obstacle is that Sheets does not recognize the field as a date. Text dates, blank cells, mixed content, or an incorrect locale can prevent the date-grouping command from appearing or produce unexpected groups. Inspect the source values and correct the column before rebuilding or refreshing the summary.
- Dates are text: Convert them to actual date values. Applying a date format alone may not convert text.
- Mixed entries: Remove words, symbols, or other non-date values from the date field.
- Wrong interpretation: Check the spreadsheet locale under File > Settings, because locale affects how ambiguous dates are read.
- Wrong selection: Right-click a date within the pivot table, not a source cell or a heading.
- New source rows are missing: Check the pivot table's source range in the editor and expand it to include the added records if needed.
After correcting the source, verify that the pivot table includes the full data range. If it does not update as expected, check the pivot editor's range and recreate the pivot table if necessary. Also watch for timestamps: two records on the same calendar day can be distinct date-time values in the source, even though a year grouping should still place them in the same year.
Grouped dates versus a separate Year column
Grouping dates inside the pivot table is convenient when you want a report organized by year without altering the source. A separate Year column can be preferable when the year is also needed for charts, formulas, filters elsewhere, or consistent reporting across several tables. It makes the year an explicit source field, but adds a column that must be maintained along with the dates.
These approaches are not the same as simply formatting a date to display only its year. A number format changes appearance but leaves the underlying date intact; multiple dates can still be distinct values. Likewise, creating a year column is useful only if it contains the correct year for each source date. Choose grouping for a quick pivot summary, and a dedicated year field when the year is a reusable part of the dataset.
Excel also has pivot-table date grouping, but its menus and editor differ from Google Sheets. Instructions written for Excel should not be followed as if they were Google Sheets menu paths. In Sheets, use the pivot table editor and the contextual Create pivot date group command.
Frequently Asked Questions
Can Google Sheets group a pivot table by year and month?
Yes, when the field is recognized as dates, use the pivot date grouping options to organize the date field at the level you need. A year-and-month view is useful for monthly trends, while year alone is simpler for annual totals.
Why does Create pivot date group not appear?
Usually the selected value is not a date item in the pivot table, or the source field contains text, blanks, or mixed values. Right-click a date within the pivot table and confirm the source column contains genuine date values.
Can I group dates by year without changing my source data?
Yes. Pivot date grouping changes the pivot table's display and aggregation, not the original date values in the source range.
Will grouping by year include future dates?
It includes records in the pivot table's source range that contain valid dates, including future dates. To exclude them, adjust the source data or use a suitable pivot filter.
Why are some dates missing from my yearly totals?
Check for dates stored as text, blank or invalid entries, filters that exclude records, and a source range that stops before the latest rows. These are common reasons a pivot summary does not reflect every record.