Sub topic 1
Pivot Tables in Google Sheets: Summarizing Data Without Writing Formulas
What a pivot table does and when to use one
A pivot table summarizes a flat table of records. It groups rows by one or more fields, then calculates a value, such as a sum or count, for each group. Use a pivot table when you need totals, counts, or averages broken down by category and want to rearrange that breakdown quickly. Use a formula such as SUMIFS when you need one fixed figure in a known cell.
Prerequisites
This chapter assumes you can select ranges, open menus, and enter simple formulas in Google Sheets. You should know that a record is one row and a field is one column. You should also understand sum, count, and average.
Preparing your source data
A pivot table reads its source range exactly as it is stored. Follow these rules:
- Put field names in the first row, with one unique name per column.
- Keep one data type per column. Text mixed into a number column produces wrong totals.
- Remove blank rows, blank columns, and merged cells inside the range.
Record the range address, such as Sales!A1:E500, because you will need it in the next step.
Creating your first pivot table
Select any cell in the data. Choose Insert, then Pivot table. Sheets asks for a source range and a location. Choose New sheet, then select Create.
Getting around the pivot table editor
The editor opens on the right side of the screen. It has four areas:
- Rows: categories listed down the side.
- Columns: categories listed across the top.
- Values: calculated numbers for each group. Set Summarize by to SUM, COUNTA, AVERAGE, and so on.
- Filters: fields that limit which records the table includes.
Add Region to Rows and Revenue to Values to see total revenue per region.
Exercise
In a pivot table, which area holds the field whose values appear as column headings?
Show answer
The Columns area.