GOOGLE SHEETS · PIVOT TABLE GUIDE
How to make a pivot table in Google Sheets
Short answer: Select your data, choose Insert then Pivot table, create it on a new sheet, and use the Add buttons in the editor to add Rows, Columns and Values.
Google Sheets pivot tables work in any browser and update themselves when the data changes, which makes them handy for shared sheets. These steps follow the current Sheets menus.
Create the pivot table
- Select your data, including the header row. Selecting whole columns, such as A to E, means new rows are picked up automatically.
- Choose Insert, then Pivot table.
- Check the data range, choose New sheet, and select Create.
- A new sheet opens with an empty table and the Pivot table editor on the right.
Add rows, columns and values
- Next to Rows, select Add and choose the field to group by, such as Region.
- Next to Values, select Add and choose the numbers to work with, such as Sales.
- Optionally, next to Columns, select Add to spread a second field across the top.
- Next to Filters, select Add to include or leave out particular values.
Choose the calculation
Each value has a Summarise by drop-down. The most useful choices are:
| Summarise by | Use it for |
|---|---|
| SUM | Adding up amounts, units or hours. |
| COUNTA | Counting filled-in cells, such as how many orders. |
| COUNTUNIQUE | Counting different values, such as how many separate customers. |
| AVERAGE | The mean of the numbers. |
| MAX and MIN | The largest and smallest values. |
Use Show as under the same value to switch to a percentage of the row, column or grand total. There is a full guide to showing a percentage of the total.
Group dates by month
Right-click a date in the pivot table and choose Create pivot date group, then Year-Month. Pick Year-Month rather than Month when your data covers more than one year, or January 2025 and January 2026 are added together. There is more in group dates by month.
Sort the result
In the editor, each row and column field has Order and Sort by settings. Sort by the value, for example SUM of Sales, in descending order to put the biggest group first.
If you just need the answer
Copy your cells from Sheets and paste them into the NetPivotal builder. It reads pasted spreadsheet cells directly, and Copy for Excel or Sheets puts the result back on your clipboard ready to paste.
Try it on sample survey resultsOpens the free pivot table builder with sample data→