Welcome to Rootlet: why we built a UK course marketplace
Sat, 10 Oct 2026
Follow the stories of academics and their research expeditions
A pivot table turns a long list of rows into a short summary in a few clicks, with no formulas. If you've ever spent an afternoon adding up a spreadsheet by hand, it's one of the most useful Excel skills you can learn. This guide walks you through building your first pivot table step by step, using a small set of sample data you can copy, so you can check your results against ours as you go.
Imagine a list of every sale a small shop made in a month. A pivot table can answer questions like "how much did each region sell?" or "which product sold best in each region?" by grouping the rows and adding them up for you. Nothing in your original data changes, and you can rearrange the summary as often as you like.
The steps below are for Excel for Windows (Microsoft 365), checked against Microsoft's own guide to creating a PivotTable. Excel calls them "PivotTables". Menus on a Mac or in older versions can look slightly different. There's a section for Google Sheets at the end.
Pivot tables are only as good as the data underneath. Microsoft's guidance is that your data should be in columns with a single header row. In practice that means:
Here's the sample data we'll use. It's made-up sales for a small stationery shop in March 2026, with Sales in pounds. Copy it into a new worksheet starting in cell A1:
| Date | Region | Product | Units | Sales |
|---|---|---|---|---|
| 03/03/2026 | North | Notebook | 12 | 60 |
| 05/03/2026 | South | Planner | 4 | 48 |
| 06/03/2026 | Midlands | Pen set | 4 | 32 |
| 10/03/2026 | North | Planner | 6 | 72 |
| 12/03/2026 | South | Notebook | 30 | 150 |
| 14/03/2026 | Midlands | Notebook | 8 | 40 |
| 17/03/2026 | North | Pen set | 5 | 40 |
| 19/03/2026 | South | Pen set | 9 | 72 |
| 21/03/2026 | Midlands | Planner | 2 | 24 |
| 24/03/2026 | North | Notebook | 15 | 75 |
| 26/03/2026 | South | Planner | 3 | 36 |
| 28/03/2026 | Midlands | Pen set | 6 | 48 |
Tip: click any cell in the data and choose Insert > Table. Microsoft recommends this (it isn't required), because a table grows automatically when you add rows, so your pivot table picks them up when you refresh.
You'll see an empty pivot table on a new sheet and the PivotTable Fields pane on the right, listing your column headers.
At the bottom of the PivotTable Fields pane are four boxes. Microsoft describes them like this:
You add a field by ticking it or dragging it into a box, and remove it by dragging it back out.
Let's answer "how much did each region sell?"
Excel adds up number fields by default, so you should see this:
| Row Labels | Sum of Sales |
|---|---|
| Midlands | 144 |
| North | 247 |
| South | 306 |
| Grand Total | 697 |
Twelve rows have become four, and you can see straight away that South sold the most.
Now drag Product into Columns. Your pivot table splits each region's sales by product:
| Sum of Sales | Notebook | Pen set | Planner | Grand Total |
|---|---|---|---|---|
| Midlands | 40 | 80 | 24 | 144 |
| North | 135 | 40 | 72 | 247 |
| South | 150 | 72 | 84 | 306 |
| Grand Total | 325 | 192 | 180 | 697 |
This shows something the first table hid: Notebooks were the best seller overall, but in the Midlands, Pen sets sold more.
Drag Product back out of Columns and into Filters instead. A drop-down appears above the table. Choose Notebook and the table shows Notebook sales only: Midlands 40, North 135, South 150. Set it back to (All) when you're done.
To see how many orders each region had, rather than their value, click the small arrow next to Sum of Sales in the Values box, choose Value Field Settings, and under Summarize Values By pick Count. In our data each region had 4 orders. Average, Max and Min are in the same list.
Switch back to Sum, then right-click any number in the Sales column, choose Show Values As, then % of Grand Total, as described in Microsoft's guide to value calculations. If you want to keep the totals in pounds and see the percentage next to them, drag Sales into Values a second time and apply the percentage to the copy only:
| Row Labels | Sum of Sales | % of total |
|---|---|---|
| Midlands | 144 | 20.66% |
| North | 247 | 35.44% |
| South | 306 | 43.90% |
| Grand Total | 697 | 100.00% |
Microsoft suggests waiting until you've finished setting things up before renaming fields like "Sum of Sales", because changing the calculation changes the name.
A pivot table doesn't update by itself when you edit the original data. After any change, right-click inside the pivot table and choose Refresh. If you have several pivot tables, use PivotTable Analyze > Refresh > Refresh All. Forgetting to refresh is an easy way to end up with out-of-date numbers.
Google Sheets works the same way with slightly different menus. Google's help page describes it like this: select your data (every column needs a header), go to Insert > Pivot table, then in the side panel click Add next to Rows, Columns or Values to choose your fields. With the sample data above, you'll get the same totals.
The best way to make this stick is to use it on your own data straight away: a household budget, sales from a side business, or a report you build by hand at work. Try asking it three different questions and rearranging the fields to answer each one.
Want to go further with spreadsheets and other practical skills? Browse the courses on Rootlet.
Sat, 10 Oct 2026
Sat, 10 Oct 2026
Leave a comment