Data Analysis•8 min read
Pivot Tables in Google Sheets: Complete Beginner Guide
Create pivot tables in Google Sheets: rows, columns, values, calculated fields, date grouping and slicers for beginners.
SheetHub••8 min
Four clicks, zero formulas: a Google Sheets pivot table turns thousands of raw rows into a summary you read in seconds. No syntax to memorize, no functions to nest, no arrays to spill. You point at a range, pick which fields become rows and values, and the summary builds itself.
Most people reach for SUMIF, COUNTIF, or QUERY when they need a grouped total. Those tools work, but each one is a formula you write, check, and maintain. A pivot table replaces the whole batch with a drag-and-drop panel that updates the moment your source data changes.
If you already work with Excel PivotTable reports, the Google Sheets version feels familiar. The idea is the same; the editor panel simply looks different. This guide walks through the Sheets workflow from a blank spreadsheet to an interactive summary.
A pivot table takes a flat data range and lets you rearrange it. Rows become categories, columns become extra groupings, and values become the numbers you want to summarize. It never touches your original data. It builds a separate summary you can reshape at any time.
The four building blocks live in the editor panel:
The result is a cross-tabulation: one dimension down the side, another across the top, and the summarized numbers filling the grid.
The setup takes four clicks.
Step 1: Select any cell inside your data. Include the header row. Google Sheets detects the full range automatically.
Step 2: Open Insert > Pivot table. From the menu choose Insert then Pivot table.
Step 3: Confirm the range and location. A dialog asks which data to use and where to put the pivot. Choose New sheet to keep things tidy, or pick an existing sheet and a starting cell.
Step 4: Click Create. An empty pivot table editor opens alongside a blank table on the sheet.
After you create the empty pivot, use the editor panel to configure it.
The editor appears on the right with four sections, mirroring the table above. Each section has an Add dropdown listing every column in your source range.
For a sales report, start with this setup:
Add Region under Rows and Sales under Values, summarized by SUM.
As soon as you add both, the pivot table fills with total sales per region. No formula appears in any cell.
To add a second dimension, drag Product to Columns. The table now shows regions down the side and products across the top, with a sales total in every intersection.
Google Sheets lets you choose how each value is summarized. Click the value field in the editor, then pick Summarize by:
The Show as menu changes how a value is displayed without altering the underlying data. Two settings you will use often:
A % of grand total shows each value as a percentage of the whole table. It is useful for market-share or budget breakdowns.
A running total adds the values down the rows. Use it for cumulative sales or growth over time.
A common trap is a value column that contains text instead of numbers. Sheets defaults to COUNT rather than SUM in that case, so make sure the source column is numeric before expecting a total.
A calculated field lets you add a formula-driven column inside the pivot, without touching the source data.
Open the pivot editor, click Add under Values, then choose Calculated field. In the box, build a formula using the source column names.
For a margin column, if your source has Sales and Cost columns:
The pivot table now shows a profit figure for every row and column intersection. You can combine calculated fields with grouping, so a monthly margin view is one field away.
Formulas in calculated fields follow normal Google Sheets syntax. If you get a parse error, the usual cause is a column name that does not match the source header exactly, or a missing operator.
Date columns get automatic grouping in Sheets. Click the date field under Rows, then choose Create pivot date group and pick the interval:
Filters narrow the data before it is summarized. Add one under Filters in the editor and pick the value you want to keep.
A slicer is the visual version. From the menu choose Insert > Slicer, then link it to a pivot. A small panel appears on the sheet with buttons for every value in the linked field. Clicking a button filters the pivot instantly, which makes slicers ideal for interactive dashboards.
A dashboard with a Region slicer lets anyone on the team switch between regions without touching the pivot structure.
Choose a different tool when your goal is more specific:
For a formula-driven alternative to a Google Sheets pivot table, QUERY's GROUP BY and PIVOT clauses do the same job and stay live as new rows arrive. For an Excel alternative that summarizes visible rows, SUBTOTAL and AGGREGATE keep the calculation formula-driven while Sheets pivots remain the no-formula path.
Pivots are forgiving, but a few situations produce confusing output:
Sheets needs a clean header row. If headers are empty or duplicated, rename them before creating the pivot so the editor can distinguish each field.
If a value column contains text, Sheets counts it instead of summing it. Convert the column to numbers, or choose COUNTA deliberately.
A calculated field syntax error usually comes from a header mismatch. Reference the source column names exactly as they appear in the data.
A fixed source range misses rows you add later. Use a named range or a full-column reference as the pivot source.
Sheets refreshes pivots when the source data changes, but a calculated field that depends on a formula result may need a manual refresh after that formula recalculates.
Select the value cells and use the Format menu to apply currency or thousands separators.
Click a value cell and use Sort to rank regions or products instead of leaving them in the default order.
Link multiple pivots to one slicer to filter an entire dashboard from a single control.
Check that a field added to Rows or Values is the one you intended. The pivot changes shape as soon as you add it.
If you expect SUM but get COUNT, check whether the value column contains text.
Rename duplicate headers before creating the pivot so the editor can distinguish the fields.
Do Google Sheets pivot tables refresh automatically? Yes, in most cases. When you edit the source data, the pivot updates. Data pulled in from external sources may need a manual refresh.
Can I build a pivot from data on another sheet? Yes. When you choose the range, select the other sheet and its range, or reference it with a named range.
Is it as capable as an Excel pivot table? The core features overlap: rows, columns, values, filters, grouping, calculated fields, and slicers. The editor panel and some advanced options differ, but the workflow is the same.
What is a pivot table?
| Panel field | What it does | Example |
|---|---|---|
| Rows | The categories you group by | Region, Product, Month |
| Columns | Optional extra grouping across the top | Quarter, Category |
| Values | The numbers you summarize | Sales, Quantity, Profit |
| Filters | Limits the data before it is summarized | Date range, Region |
Creating your first pivot table
The editor panel: rows, columns, values, filters
Summarize by and show as
| Option | What it returns |
|---|---|
| SUM | Adds the values |
| COUNT | Counts non-empty cells |
| COUNTA | Counts all values, including text |
| AVERAGE | Returns the mean |
| MAX | Returns the largest value |
| MIN | Returns the smallest value |
Calculated fields
=Sales - CostGrouping by date
- Year
- Quarter
- Month
- Day
Slicers and filters
Pivot vs. the alternatives
| Need | Use |
|---|---|
| Summarize without formulas, interactive | Pivot table |
| Summary that updates from a live formula | QUERY with GROUP BY or PIVOT |
| A single condition, quick total | SUMIF |
| Excel-only environment | Excel pivot table |
Error handling and limitations
Pro tips
Common mistakes to avoid
FAQ
Article Topics
Recommended Next Reading
Excel
=EXCEL(...)Excel MODE.MULT: Find Multiple Modal Values in Data
Explore ↗
Excel
=EXCEL(...)Excel Goal Seek: Solve for a Target Value
Explore ↗
Excel
=LINEAR(...)Linear Interpolation in Excel: Fill Missing Values
Explore ↗
Share this tutorial
Discussion & Community
Share questions, tips, or edge-cases about this spreadsheet formula.