Pivot Table
A pivot table summarizes a long list without formulas, such as revenue per store and category. Learn the fields, why you need to refresh, and practice step by step.
- Free, no sign-up
- No upload – files stay on your device
- Phone, tablet and computer
A pivot table summarizes a long list in seconds: revenue per store, units per category, or both in one grid, without writing a single formula. Above, you build one from 20 sales of a bike shop, add a second dimension, fix a typo in the data and refresh the result.
How a pivot table works
A pivot table groups the rows of a list by the values in one column and calculates a result for each group. You decide which fields go where:
| Area | What it does | In the practice sheet |
|---|---|---|
| Rows | One row per distinct value | Store: Downtown, Northside, Southside |
| Columns | One column per distinct value | Category: Accessories, City Bike, E-Bike, Kids Bike |
| Values | The numbers that are summarized | Revenue |
| Calculation | How they’re summarized | Sum (also Count, Average, Min, Max) |
The source list needs a header row with a unique name in every column, and no completely empty rows or columns. The headers become the field names.
Practice right here
The lesson panel next to the sheet guides you through four tasks. Click Check after each one:
- Create: click into the list, choose Insert → PivotTable, set Rows to Store and Values to Revenue with Sum, and place it on a new worksheet.
- Add columns: click into the pivot table, choose Data → PivotTable → Change Fields and add Category as the column field.
- Refresh: correct the typo in cell E10 of the sales list, then refresh the pivot table.
- Cross-check: calculate Northside’s revenue with SUMIF. It must match the pivot table.
Refresh after every change
A pivot table is a snapshot. If you change the source data, the summary keeps showing the old numbers until you refresh it. That’s what task 3 is about: after correcting $2,390 to $3,290, Northside’s total only goes up by $900 once you refresh. In the Spreadsheet Editor, click into the pivot table and choose Data → PivotTable → Refresh.
Pivot tables in Excel
In Excel, go to Insert → PivotTable → From Table/Range. Then drag the fields in the field list into the Filters, Columns, Rows and Values areas. To change the calculation, open the Value Field Settings; to refresh, right-click the pivot table and choose Refresh, or use Data → Refresh All.
What the Spreadsheet Editor can do, and where it stops
- One field each for rows and columns, with Sum, Count, Average, Min or Max and a grand total.
- Placed on a new worksheet or on the same sheet.
- One value field only: revenue and units at the same time need two pivot tables.
- No filter field and no grouping of dates by month. A helper column such as
=MONTH(A2)does the trick. - Refreshed by hand: when you save as .xlsx, the results stay as normal cells, but not the pivot table itself.
Common mistakes
- Numbers counted instead of added: if a value column contains text, the calculation often switches to Count. Check that the column holds real numbers.
- Old numbers: the source data changed, but the pivot table wasn’t refreshed.
- “(blank)” in the result: the source range includes empty rows. Limit it to the actual list.
- Odd field names: a column without a header gets a generic name. Give every column a clear header.
Frequently asked questions
Why doesn’t my pivot table update?
Pivot tables don’t recalculate on their own. Click into it and choose Refresh.
Can I show several values in one pivot table?
In Excel, yes: drag several fields into Values. The Spreadsheet Editor supports one value field per pivot table.
Is the pivot table saved in the .xlsx file?
From the Spreadsheet Editor, the results are saved as normal cells, not as a live pivot table. In Excel, you can build a new one from the data in a few clicks.
Pivot table or formulas?
A pivot table is quicker for exploring and for many groups at once. SUMIF and COUNTIF update immediately and fit into fixed reports.
Microsoft Excel is a trademark of Microsoft Corporation. The Spreadsheet Editor is not affiliated with Microsoft.