How to Create a Pivot Table in Google Sheets

When you are staring at a massive Google Sheet filled with hundreds or thousands of rows of raw data (like sales figures, survey responses, or budget expenses), finding meaningful patterns can feel impossible. Sorting and filtering only go so far.

This is where Pivot Tables come in. A pivot table is a powerful data summarisation tool that automatically aggregates, categorises, and calculates totals from a large dataset without requiring you to write complex formulas like SUMIFS or COUNTIFS.

In this guide, we will show you how to build your first pivot table in Google Sheets and use it to instantly pull actionable insights from raw data.

Step 1: Prepare Your Raw Data

A pivot table will only work correctly if your raw data is formatted properly.

  1. Ensure every column has a clear header. The very first row of your spreadsheet should contain titles for each column (e.g., "Date", "Salesperson", "Region", "Revenue").
  2. Remove completely blank rows or columns. Blank rows in the middle of your dataset can confuse the pivot table.
  3. Keep data consistent. If one column tracks "Region," ensure spelling is identical (e.g., "North" and "north" will be treated as two completely separate categories by the pivot table).

Step 2: Insert the Pivot Table

Once your data is clean, generating the table takes only a few clicks.

  1. Click on any single cell inside your dataset (or highlight all the data, including the headers).
  2. In the top menu bar, click Insert.
  3. Select Pivot table from the dropdown menu.
  4. A small dialogue box will appear asking for the "Data range" (it should automatically detect your dataset).
  5. Under "Insert to", choose New sheet. This is highly recommended to keep your summary separate from your raw data.
  6. Click Create.

Google Sheets will open a new tab containing a blank pivot table on the left and a Pivot table editor panel on the right.

Step 3: Build Your Pivot Table (Rows, Columns, and Values)

The Pivot table editor is where the magic happens. You build your summary by dragging and dropping your column headers into different sections. Let’s imagine you want to see total revenue generated by each salesperson.

1. Add Rows (The Categories)

Rows determine the main categories you want to analyse.

  • In the Pivot table editor, look for the Rows section and click Add.
  • Select "Salesperson" from the dropdown list.
  • Your blank table on the left will immediately populate with a list of every unique salesperson’s name, alphabetised and grouped perfectly.

2. Add Values (The Numbers)

Values dictate what data you want to calculate for those categories.

  • Look for the Values section in the editor and click Add.
  • Select "Revenue."
  • By default, Google Sheets will sum up the revenue for each salesperson. You will now see exactly how much each person sold next to their name.

3. Change the Calculation (Optional)

You are not limited to just adding numbers together. Under the Values section in the editor, look at the "Summarize by" dropdown. You can change SUM to AVERAGE (to see the average sale size for each person), COUNT (to see how many individual sales they made), or MAX/MIN.

4. Add Columns (The Sub-categories)

To break your data down even further, add a column dimension.

  • Look for the Columns section in the editor and click Add.
  • Select "Region."
  • The table will expand horizontally. You will now see a grid showing exactly how much revenue each salesperson generated, broken down specifically by North, South, East, and West regions.

Why Use Pivot Tables?

The beauty of a pivot table is its flexibility. If you suddenly decide you want to see revenue by Region instead of by Salesperson, you don’t need to rewrite any formulas. You simply click the "X" in the editor to remove Salesperson from the Rows, click Add, and choose Region instead. The entire table rebuilds itself in half a second.

By mastering the basics of Rows, Columns, and Values, you can instantly turn overwhelming spreadsheets into clear, professional summaries that are ready for presentations and analysis.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.

Receive our best articles and tips delivered straight to your inbox.