Sub topic 3
Creating Your First Pivot Table
Assume you can select ranges, use the Google Sheets menus, enter simple formulas, and recognize fields such as region, product, date, and revenue. A pivot table is a summary built from a source range. It reorganizes records without changing the original data.
Suppose a sheet named Sales contains this table:
| Date | Region | Product | Units | Revenue |
|---|---|---|---|---|
| 2026-01-03 | West | Keyboard | 4 | 240 |
| 2026-01-04 | East | Mouse | 6 | 150 |
| 2026-01-05 | West | Mouse | 3 | 75 |
Your goal is to summarize revenue by region.
Prepare the source range
Before creating the pivot table, check the source data:
- Put field names in one header row.
- Keep each record on one row.
- Keep each field in one column.
- Do not leave completely blank rows or columns inside the table.
- Use consistent values, such as
Westrather than a mixture ofWest,west, andWest. - Store dates as actual dates and revenue as numbers, not text.
Select a cell inside the data range. You do not need to select the whole range manually if the table has a connected layout.
Create the pivot table
- Click a cell in the
Salesdata. - Select Insert > Pivot table.
- In the dialog, confirm the data range. For example, it might show
Sales!A1:E. - Choose New sheet so the summary does not cover the source data.
- Click Create.
Google Sheets opens a new sheet with a blank pivot table and a Pivot table editor on the right. The editor contains areas named Rows, Columns, Values, and Filters. These areas determine how the source records are grouped and summarized.
Add fields to the editor
Under Rows, click Add, then choose Region. Each distinct region appears as a row.
Under Values, click Add, then choose Revenue. Google Sheets usually selects SUM because revenue is numeric. The pivot table now shows the total revenue for each region and usually includes a grand total.
The source records remain unchanged. The pivot table stores a separate view of those records, so you can change its layout without rewriting the original table.
For a first result, the configuration looks like this:
| Editor area | Field | Purpose |
|---|---|---|
| Rows | Region | Creates one row for each region |
| Values | Revenue | Adds revenue within each region |
| Columns | None | Does not create headings across the table |
| Filters | None | Includes every region |
Confirm that the result answers the question
Read the question before choosing fields: “What is total revenue by region?” Region belongs in Rows, and Revenue belongs in Values summarized by SUM.
If the question changes to “How many sales records belong to each region?”, use Region in Rows and add a field such as Product or Date to Values. Change Summarize by to COUNTA when counting nonblank entries.
Exercise
You need total units sold by product. Which field goes in Rows, which field goes in Values, and which summarization should you choose?
Show answer
Put Product in Rows, Units in Values, and choose SUM under Summarize by.