Skip to main content
SheetHub Docs
Data Analysis8 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.

SheetHub8 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.

What is a pivot table?

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:
Panel fieldWhat it doesExample
RowsThe categories you group byRegion, Product, Month
ColumnsOptional extra grouping across the topQuarter, Category
ValuesThe numbers you summarizeSales, Quantity, Profit
FiltersLimits the data before it is summarizedDate range, Region
The result is a cross-tabulation: one dimension down the side, another across the top, and the summarized numbers filling the grid.

Creating your first pivot table

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 panel: rows, columns, values, filters

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.

Summarize by and show as

Google Sheets lets you choose how each value is summarized. Click the value field in the editor, then pick Summarize by:
OptionWhat it returns
SUMAdds the values
COUNTCounts non-empty cells
COUNTACounts all values, including text
AVERAGEReturns the mean
MAXReturns the largest value
MINReturns the smallest value
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.

Calculated fields

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:
=Sales - Cost
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.

Grouping by date

Date columns get automatic grouping in Sheets. Click the date field under Rows, then choose Create pivot date group and pick the interval:
  • Year
  • Quarter
  • Month
  • Day
Group a transaction date by Month and the pivot instantly collapses thousands of daily rows into a monthly sales line. You can add a second grouping inside the first, so the table shows Year and then Month beneath it for a drill-down view. Date grouping is a headline reason to use pivot tables over manual summaries. The same view in a formula would need MONTH(), YEAR(), and a SUMIF per period.

Slicers and filters

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.

Pivot vs. the alternatives

Choose a different tool when your goal is more specific:
NeedUse
Summarize without formulas, interactivePivot table
Summary that updates from a live formulaQUERY with GROUP BY or PIVOT
A single condition, quick totalSUMIF
Excel-only environmentExcel pivot table
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.

Error handling and limitations

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.

Pro tips

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.

Common mistakes to avoid

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.

FAQ

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.

Recommended Next Reading

All Articles

Share this tutorial

Discussion & Community

Share questions, tips, or edge-cases about this spreadsheet formula.

Recommended Next Reading

All Articles