How to create a pivot table in Google Sheets
In Google Sheets (verified 2026-10-24), select your data range (or click inside a table), go to Insert > Pivot table, choose New sheet or Existing sheet, then in the Pivot table editor add Rows, Columns, Values (Sum/Count/Average…) and optional Filters. Edit the editor anytime; the pivot recalculates when source cells change.
Pivot tables summarise without writing QUERY by hand — keep one clean header row and avoid blank header cells. For reusable logic across files, pair pivots with named ranges or FILTER elsewhere.
Applies to Google Sheets in the browser (and Sheets mobile for viewing; building pivots is easiest on desktop web). Editors need edit access to change the pivot layout.
Insert and configure a pivot table
Select data and insert
- Select the range including headers (or put the cursor in a formatted table).
- Insert > Pivot table.
- Choose New sheet (recommended) or a cell on the current sheet.
Build rows and values
- In the Pivot table editor, click Add next to Rows and pick a field (for example Category).
- Add a Values field (for example Amount) and set Summarize by Sum/Count.
- Optionally add Columns and Filters for a two-way summary.
Maintain the pivot
- Sort or filter inside the pivot as needed.
- When you append source rows, widen the source range in the editor if it does not auto-expand.
- Duplicate the sheet before experimental layout changes.
Our take: pivot for exploration, QUERY for dashboards you version in git
Pivots are perfect for ad-hoc cuts; lock monthly reporting into QUERY/named functions when multiple people edit.
If it fails
- Editor missing: click any cell inside the pivot.
- Wrong totals: Values summarize by Count instead of Sum — change Summarize by.
- New rows ignored: source range is too small — edit the range.
- #REF! after moves: you deleted the source sheet — Undo or recreate.
Frequently asked questions
What is a Google Sheets pivot table?
An interactive summary table that groups and aggregates rows from a source range without manual formulas.
How do I create a pivot table?
Select data > Insert > Pivot table > add Rows/Values in the editor.
Pivot table vs QUERY?
Pivots are UI-driven and quick to explore; QUERY is a formula you can copy and version.
Can I filter a pivot?
Yes — add Filters in the Pivot table editor or filter the source before pivoting.
Do pivots work offline?
They calculate when Sheets can evaluate the file; create them while online on the web app.