Confident CellsExcel practice Start free

PivotTables: your first one: practice exercises

Insert PivotTable, rows, columns, values, sum, count, average. 5 exercises on real-looking data, each checked as you go. This lesson is free, with no account needed.

In the lesson

This lesson has a PivotTable builder like Excel's: drag fields into Rows, Columns and Values, and each task is checked as you go.

Open the PivotTables: your first one lesson

How it works

A PivotTable summarises a table in a few clicks, with no formulas: total sales for each team, the number of people in each region, the average for each month.

Click a cell in the data and choose Insert PivotTable, then OK. In the PivotTable Fields list, tick a field or drag it into a box: Rows lists its items down the side, Columns across the top, and Values adds them up. On a phone, tap a field to choose its box. Values are summed unless you change it to Count, Average, Max or Min in Value Field Settings.

What a PivotTable does

Say you have 500 rows of sales and want the total for each team. You could write a SUMIF for each team, or let a PivotTable do it: it finds every team for you, totals them, and adds a grand total.

Filters

Columns

Rows

Team

Values

Sum of Sales (£)
Row LabelsSum of Sales (£)
Finance32310
Marketing10450
Sales19850
Grand Total62610
  • Rows: the field whose items go down the side (one row per team).
  • Columns: a field across the top, for a two-way table (teams by region).
  • Values: what's added up. Numbers are summed; text is counted.
  • Filters: picks which records count. More on that later.

Tick a field and Excel chooses its box: numbers go to Values, everything else to Rows. Drag a field to choose for yourself, or tap it for a menu.

Changing the summary

Values are summed to start with. Open the menu on the value in the Values box, choose Value Field Settings, and pick Count to count rows, Average for the mean, or Max and Min. The heading changes to match, such as Average of Sales (£).

A PivotTable doesn't update by itself when the data changes: press Refresh. And you can't type over its numbers; change them with the field list instead. You can type over a heading such as Sum of Sales (£) to rename it.

What you'll practise

  1. Make a PivotTable showing the total sales for each team: Insert PivotTable, then Team in Rows and Sales (£) in Values.
  2. Make a PivotTable that counts how many salespeople are in each region: Region in Rows, Salesperson in Values. (Text in Values is counted, not added.)
  3. Make a PivotTable of the average sale for each team: Team in Rows, Sales (£) in Values, then summarise by Average.
  4. Make a two-way PivotTable: teams down the side, regions across the top, and total sales in the middle.
  5. Use a PivotTable of total sales by region to find the region that sold the most. Then type its name in B19.

Guide with worked examples: GROUPBY and PIVOTBY: summaries without a PivotTable