How to create a pivot table in Google Sheets

Updated · DeskHowTo

In Google Sheets (verified 2026-10-24), select your data including headers, choose Insert > Pivot table, pick New sheet or Existing sheet, then click Create. In the editor, add fields to Rows, Columns, and Values (SUM, COUNTA, AVERAGE).

When source data grows, use an open range or a wider selection; click the pivot and adjust the data range in the editor.

Jump to

Applies to Google Sheets in the browser. Pivot tables answer "totals by category" without writing SUMIF for every cut — see also Excel pivot basics.

Build a pivot table

Insert the pivot

  1. Select the data range with a header row (or click any cell in a contiguous block).
  2. Choose Insert > Pivot table.
  3. Confirm New sheet (recommended) > Create.

Configure fields

  1. In the Pivot table editor, click Add beside Rows and pick a category (for example Region).
  2. Add a Values field (for example Sales) and set summarise by SUM.
  3. Optional: add Columns (for example Month) or Filters.

Update later

  1. Click any pivot cell to reopen the editor.
  2. Change the data range if you added rows below the original selection.
  3. Sort row labels via the row field's order options / sort menus.

Our take: clean headers first

Merged headers and blank rows break pivots. Unmerge, one header row, consistent types in each column — then pivot. For collaborative filtering without changing others' views, use filter views.

If it fails

  • Empty pivot: Values field missing or wrong column type — add Values explicitly.
  • Duplicate category spellings: "West" vs "west " — clean source with TRIM.
  • Range stuck: edit the data range in the pivot editor to include new rows; converting source to a widening range helps.
  • Permission denied: you need edit access to create pivots on that file.

Frequently asked questions

How do I make a pivot table in Google Sheets?

Select data > Insert > Pivot table > Create, then add Rows and Values.

Can I put a pivot on the same sheet?

Yes — choose Existing sheet and pick a top-left cell with space.

How do I change SUM to COUNT?

In the Values field, change Summarise by to COUNTA or COUNT.

Does the pivot auto-update?

It recalculates with sheet changes inside its data range; extend the range when you add rows.

Sheets pivot vs Excel pivot?

Same idea; Excel has PivotCharts and slightly different field lists.

Sources checked: Google Docs Editors Help: Create & use pivot tables. Verified October 2026.