Google Sheets Pivot Table Tutorial: Step-by-Step
In this article
To create a pivot table in Google Sheets, select your data range, then choose Insert > Pivot table and pick a destination cell. Drag fields into Rows, Columns, Values, and Filters to summarise your data. That is the whole process: the rest is choosing the right fields and knowing how to fix the common snags.
What You'll Need
- A Google account with access to Google Sheets (free with any Google account).
- A spreadsheet with data arranged in columns, where the first row contains clear headers such as Date, Region, Product, or Amount.
- No blank rows or columns inside the data range, and no merged cells in the header row.
- Basic familiarity with dragging and dropping, or with the pivot table editor sidebar.
Step-by-Step
- Open your spreadsheet. Go to sheets.google.com, sign in, and open the file that contains the data you want to summarise.
- Select your data range. Click the first cell of your data (usually A1) and drag to the last cell, or press Ctrl+A (Cmd+A on Mac) to select the whole contiguous block. Make sure the selection includes the header row.
- Insert the pivot table. From the menu, choose Insert > Pivot table. A dialog appears asking where to place it: choose New sheet or Existing sheet and click a cell. Then click Create. Labels can differ slightly by version and region, but the path Insert > Pivot table is consistent.
- Find the pivot table editor. A sidebar opens on the right. If it does not, click any cell inside the pivot table and the editor reappears. This sidebar is where you build the table.
- Add a field to Rows. Drag a category field (for example, Region or Product) from the editor's field list into the Rows area. Each unique value becomes a row label.
- Add a field to Values. Drag a numeric field (for example, Sales or Quantity) into the Values area. By default, Sheets sums numbers; you can change this to COUNT, AVERAGE, MAX, MIN, or others by clicking the field chip and choosing Summarise by.
- Optionally add Columns. Drag a second category field (for example, Month or Category) into Columns to create a cross-tab. Keep it to one or two fields to avoid an unreadable grid.
- Optionally add Filters. Drag a field into Filters to restrict which rows are included. Click the filter chip and tick or untick values. This filters the pivot table only, not the source data.
- Format the numbers. Click a value chip, choose Format, and pick a number format such as Currency or Percent. This affects only the pivot table display.
- Refresh after changes. If you edit the source data, the pivot table does not update automatically. Right-click any cell in the pivot table and choose Refresh pivot table, or edit a field in the editor to force a recalculation.
- Rename the sheet tab. Double-click the tab at the bottom and give it a clear name such as "Sales by Region". This helps when you build several pivot tables.
Common Mistakes
- Headers missing or blank. Pivot tables need a header in every column. A blank header becomes a field called something like "Column A" and breaks grouping.
- Blank rows inside the data. A single empty row splits the range, so the pivot table ignores everything below it. Delete blank rows before inserting.
- Merged cells in the header. Merged headers confuse the field list. Unmerge them first.
- Dragging a text field into Values. Sheets will count it rather than sum it, which may not be what you want. Check the summarise setting.
- Expecting automatic updates. Pivot tables are snapshots. After editing source data, refresh manually.
- Too many fields in Columns. This creates a wide table that is hard to read and slow to render. Use Filters instead of adding every category as a column.
Tips
- Use a named range or a full-column reference (for example, A:D) as the source so new rows are included after a refresh. In the pivot table editor, click the source range under Data range to edit it.
- Sort pivot table rows by clicking a row label and using the sort arrows, or right-click and choose Sort.
- Group dates by month or year: drag a date field to Rows, then click the field chip and choose Create pivot date group > Month or Year.
- Use Show totals in the editor to add or remove row and column totals.
- Copy the pivot table to another sheet with Ctrl+C and Ctrl+V if you want a static snapshot; the copy will not refresh.
- Keep one pivot table per sheet tab for clarity, especially when sharing the file.
Troubleshooting
The pivot table editor does not appear. Click inside the pivot table area. If it still does not show, close and reopen the sidebar from the right edge, or reload the page. Check that you are not in a protected range that blocks editing.
Values show as counts instead of sums. The field may contain text or blanks. Click the value chip, choose Summarise by > SUM, and clean the source column so it contains only numbers.
New rows are missing. The source range is fixed. Edit the data range in the editor to include the new rows, then refresh.
The pivot table shows an error such as #REF!. The source range was deleted or moved. Re-point the data range in the editor to a valid range.
Dates group oddly. Ensure the date column is formatted as dates, not text. Use Format > Number > Date on the source column, then refresh.
You cannot edit the pivot table. The sheet may be protected or you may have view-only access. Ask the owner for edit permission.
Frequently Asked Questions
Can I edit the source data and keep the pivot table?
Yes. Edit the source cells, then right-click the pivot table and choose Refresh pivot table. The layout and field settings stay the same.
Why does my pivot table show blank rows?
Blank rows usually come from empty cells in the row field. Filter them out in the pivot table editor or clean the source column.
Can I use a pivot table as a chart source?
Yes. Select the pivot table cells and insert a chart. The chart updates when the pivot table refreshes.
How do I delete a pivot table?
Select the pivot table cells and press Delete, or delete the entire sheet tab if the pivot table is alone on it. The source data is not affected.
Does a pivot table work on the Google Sheets mobile app?
You can view and edit existing pivot tables in the mobile app, but creating one from scratch is limited. Use the desktop browser for full pivot table editing.
Can I copy a pivot table to another spreadsheet?
Yes, but the copy may lose its connection to the source range. Check the data range in the editor after pasting and re-point it if needed.