What a pivot table does and when you need one

A pivot table in Google Sheets takes raw data — rows of transactions, survey responses, sales records — and reorganizes it to show totals, counts, or averages grouped by the categories you choose. Instead of scrolling through hundreds of rows to find patterns, a pivot table does the grouping for you in seconds.

You need a pivot table when you want to answer questions like: How much did each sales rep sell? Which product category brought in the most revenue? How many customers are in each region? The data already exists in your spreadsheet; a pivot table just rearranges it so the answer jumps out.

Google Sheets builds the pivot table in a new sheet, leaving your original data untouched. If your data changes, you can refresh the pivot table to pull in the new numbers.

Key Takeaways

  • Your data must have headers in the first row, with each column representing one type of information (like Date, Product, Amount, Region).
  • Select all your data including headers, then go to Insert > Pivot table to open the pivot table editor.
  • Drag fields into Rows, Columns, Values, and Filters to shape how the data displays and what it calculates.
  • Google Sheets creates the pivot table on a new sheet, so your original data stays exactly as it was.
  • When your source data changes, open the pivot table sheet and click the refresh icon to update all the numbers.

Preparing your data before you start

Pivot tables work best when your data is organized in a simple, consistent format. Each column should represent one category of information — Date, Product Name, Sales Amount, Region, Customer Name — and the first row must contain headers (the column titles). Every row below that should be a single record or transaction.

Check that your data does not have blank rows or columns in the middle. If you have notes or summaries mixed into the data, move them to a separate area or delete them. Google Sheets will include everything you select, so stray data will confuse the pivot table.

You do not need to sort or clean the data beyond this. Pivot tables handle messy order just fine — that is part of what they do.

Selecting your data and opening the pivot table editor

Click on any cell in your data range, then go to the menu and select Insert > Pivot table. Google Sheets will automatically detect the boundaries of your data and highlight the range it found.

If the range is wrong — if it missed some data or included extra rows — you can adjust it in the dialog box that appears. Type or paste the correct range (for example, A1:F500) or click the range selector icon to drag across your data on the sheet. Once the range is correct, click Create.

Google Sheets opens a new sheet called "Pivot Table" and shows you the pivot table editor panel on the right side of the screen. This is where you build the table by dragging fields into four zones: Rows, Columns, Values, and Filters.

Dragging fields into Rows, Columns, and Values

The pivot table editor lists all the column headers from your data in a section called "Fields." To build your pivot table, drag these fields into the four zones below.

Rows are the categories that appear down the left side of your pivot table. If you drag "Product" into Rows, each product name becomes a row. Columns are categories that spread across the top — dragging "Region" into Columns creates a column for each region. Values are the numbers that fill the cells: drag "Sales Amount" into Values and Google Sheets will sum all sales for each product-region combination.

Start simple. Drag one field into Rows (like "Product Name"), one into Values (like "Amount"), and click anywhere outside the editor. Google Sheets builds a table showing each product and its total. Then add a second field to Rows or drag something into Columns to break the totals down further.

By default, Google Sheets sums numbers in the Values zone. If you need a count, average, or maximum instead, click the field name in the Values zone and select a different calculation from the menu.

Using Filters to narrow what appears in the pivot table

Drag a field into the Filters zone at the top of the editor, and Google Sheets adds a dropdown menu above your pivot table. Use that dropdown to show only certain categories — for example, filter to show only sales from the East region, or only transactions from the last quarter.

Filters are useful when your pivot table is large and you want to focus on a slice of it without rebuilding the whole thing. You can add multiple filters. Each one appears as its own dropdown, and you can change them without touching the pivot table structure.

Refreshing your pivot table when data changes

When you add new rows to your original data sheet, the pivot table does not automatically include them. Open the pivot table sheet and look for the refresh icon — it looks like a circular arrow — near the top left of the pivot table. Click it, and Google Sheets recalculates using all the data in the source range.

If you added so many rows that they fall outside your original range, you will need to edit the pivot table instead. Right-click the pivot table and select Edit pivot table, then update the data range to include the new rows. After that, the refresh icon will work as usual.

Common mistakes and how to fix them

The most common mistake is forgetting headers in the first row. Google Sheets needs them to know what each column represents. If your data starts without headers, add a row at the top with simple labels like "Date," "Product," "Amount," and try again.

Another frequent issue is selecting too much data — for example, including blank rows or summary rows at the bottom. Go back to your source sheet, check the range, and create a new pivot table with just the data you need. You can delete the old pivot table sheet afterward.

If a pivot table looks wrong or shows unexpected totals, check the Values zone in the editor. Make sure the calculation (Sum, Count, Average) matches what you intended. You can also click a number in the pivot table itself, and Google Sheets will highlight the rows from your source data that went into that total.

Frequently Asked Questions

Can I have multiple pivot tables from the same data?

Yes. Create one pivot table, then go back to your source data and create another. Each pivot table lives on its own sheet and can be structured completely differently. This is useful when you want to see the same data grouped by different categories.

What if I want to show both a sum and a count for the same field?

Drag the same field into Values twice. The first copy might sum, the second might count. Click each one in the Values zone to set its calculation separately. Google Sheets will display both columns in your pivot table.

Can I edit numbers directly in a pivot table?

No. Pivot tables are read-only summaries of your source data. To change a number, go back to the original sheet and edit the source row. Then refresh the pivot table to see the updated total.

How do I delete a pivot table I no longer need?

Right-click the sheet tab at the bottom and select Delete sheet. The pivot table sheet disappears, but your original data remains untouched on its own sheet.

What happens if I delete a column from my source data?

The pivot table will show an error because it cannot find that field anymore. Edit the pivot table, remove that field from whichever zone it was in, and the error clears. The pivot table continues to work with the remaining fields.