In Excel: select a clean data range, choose Insert ▸ PivotTable, place fields into Rows, Columns, Values and Filters, then refresh when the source data changes.
Grand total: 1,250.50
| Region | Sum |
|---|---|
| West | 125.50 |
| East | 1050 |
| South | 75 |
The same thing in your own sheet
Sum · Excel & Sheets
What this does
A pivot table summarizes a flat data table without writing formulas. Rows and Columns define the groups, Values define the numbers to aggregate, and Filters or slicers narrow the view. It works best when the source has one header row, no blank columns, one record per row and consistent data types. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “sample pivot table in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected pivot table shows up while it is still harmless. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That turns a data step that keeps your analysis trustworthy into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
A sales table has Date, Region, Rep and Revenue columns. Insert a PivotTable, drag Region to Rows and Revenue to Values. Excel returns total revenue by region. Drag Date to Columns and group by Month to turn the same source into a monthly regional summary. Pivot tables are one of the highest-leverage Excel tools for summarizing messy transactional data into totals by customer, region, month, product or owner. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
Google Sheets handles this almost identically to Excel. The formula syntax above is the same, and the menu lives under a slightly different label rather than a ribbon tab. Use the platform toggle at the top of the page to switch every keyboard shortcut between Windows and Mac, and expect at most cosmetic differences in naming. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top, the tool proves it, and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. If you take one thing from this page on “sample pivot table in excel”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.
Common mistakes
- Using a report layout with merged cells or subtotals as the source.
- Forgetting to refresh after source data changes.
- Letting Excel count a numeric field because one source cell contains text.
- Building formulas beside a pivot table without allowing for the pivot size to change.
Frequently asked questions
What is a pivot table?
It is an interactive summary table that groups and aggregates records from a source table.
Why is my pivot table counting instead of summing?
At least one value in the source field is text or blank in a way that makes Excel treat the field as non-numeric.
How do I update a pivot table?
Right-click the pivot table and choose Refresh, or use Data ▸ Refresh All.