Templates, guides & honest tool reviews for small business

Sunday, November 29, 2026

Pivot Table in Google Sheets: Step-by-Step Guide for Beginners

Pivot table in Google Sheets, step by step
Illustration: Pivot table in Google Sheets

A pivot table in Google Sheets summarizes a long list of rows into a small table of totals, counts or averages, without writing formulas. You choose which field goes in the rows, which in the columns and what to calculate. This guide builds one step by step with made-up sales data, then shows how to change the calculation, add a filter, group dates and refresh the result.

Prepare your data

A pivot table works best when the data is a clean table: one header row, one record per row, no empty rows or columns and no merged cells. Say your sheet has these columns: Date, Region, Product and Sales. Every column needs a header, because the headers become the field names.

Create the pivot table

  1. Select your data, including the headers.
  2. Click Insert, then Pivot table.
  3. Choose to place it on a new sheet or on an existing one, then click Create.

Sheets opens an empty pivot table and the pivot table editor on the right.

Google Sheets Insert Pivot table steps
Select the data, then Insert, Pivot table (illustration).

Add rows, columns and values

In the editor you will see four areas: Rows, Columns, Values and Filters. Click Add next to each one and pick a field:

  • Rows: Region.
  • Columns: Product.
  • Values: Sales.

The result is a grid with the regions down the side, the products across the top and the total sales where they meet. Sheets adds the grand totals for you.

Google Sheets pivot table with rows, columns and values
Made-up sales by region and product (illustration).

Change how the values are calculated

Under Values, the Summarize by option controls the calculation. SUM is the default for numbers. You can switch to COUNTA to count the rows, AVERAGE for the average, MAX or MIN for the highest or lowest value, and other options in the same list.

The Show as option changes the display. For example, choose a percentage of the grand total to see each cell as a share of everything. If you want to add your own math, a calculated field does that; the Excel version is explained in pivot table calculated field, and Google Sheets has a similar Calculated field option under Values.

Google Sheets pivot table Summarize by options: SUM, COUNTA, AVERAGE
Change what each cell shows (illustration).

Add a filter

Click Add next to Filters, pick a field such as Product, and choose which items to show. Only the checked items appear in the pivot table, while the source data stays unchanged.

Sort the pivot table

Under Rows, use the Order and Sort by options to sort by the row labels or by a value. To see the best regions first, sort by the Sales total in descending order.

Group dates

If you add Date to the rows, you get one row for every date. To group by month, right-click a date in the pivot table, choose Create pivot date group and pick an option such as Year-Month. This works when the dates are real dates, not text.

Google Sheets pivot table with dates grouped by month
Right-click a date to group it (illustration).

Refresh and update

A pivot table in Google Sheets updates when the source data changes. If you add rows below the data, extend the data range in the editor, or select the whole columns when you create the pivot table so new rows are included.

When a formula is better

A pivot table is quick for exploring data. If you need a fixed layout or a result that feeds other formulas, you can use QUERY or SUMIF instead. See QUERY function examples for a formula based summary.

Common problems

  • The field is missing. The column has no header, or the range does not include it.
  • Values are counted instead of summed. The column contains text or blanks. Clean it or change Summarize by.
  • Dates do not group. Some dates are stored as text.
  • New rows do not appear. The pivot range stops at the old last row.
  • Duplicate labels. "North" and "North " are different values. Trim the text first.

Questions and answers

Can I make a pivot table in Excel too?

Yes. Read our Excel pivot table tutorial.

Can I edit the numbers inside a pivot table?

No. The values are calculated. Change the source data instead.

Can I use more than one field in the rows?

Yes. Add a second field under Rows and Sheets nests it inside the first.

Can I turn a pivot table into a chart?

Yes. Select the pivot table and use Insert, then Chart. The chart follows the pivot table when it changes.

Summary

Prepare a clean table, insert the pivot table, drop fields into rows, columns and values, then adjust the calculation, filter and sort. It updates as your data changes.

العربية