Wishing all our customers a happy Halloween

Wishing all our customers a very happy Christmas

Wishing all our customers a happy New YearThe New Year in 10Happy New Year! Wishing all our customers a wonderful

Wishing all our customers a happy Easter

LEARN · SKILL 11 OF 11

Pivot tables

Pivot tables are the quickest way to answer "how much per region" or "how many per person", with no formulas. You choose the groups and whether to Sum or Count.

  1. LearnRead the guide and its worked examples.
  2. PractiseA drill on just this skill, easier tasks first. Stuck? “Show me how”.
  3. TestA timed mock in the style your employer named.
  4. ReviewYour report shows what cost marks and what to practise next.

The functions

Rows Rows area
Each different value in this field gets its own row, for example one row per region.
Columns Columns area
Each different value gets its own column, for example one column per month.
Values Values area
The numbers to summarise. Choose Sum to add them or Count to count rows.
Filters Filters area
Limits the pivot to some rows, for example one year only.

Worked examples

Example 1 Total sales per region

D1
ABCDE
1RegionSalesOne row per region with its total, and a Grand Total of 5800SUM of Sales
2North1,200East700
3South900North3,100
4North1,500South2,000
5East700Grand Total5,800
6North400
7South1,100
Rows: Region · Values: SUM of Sales gives the highlighted result in D1.

Step by step

Step 1
Click any cell in the data, A1:B7.
Step 2
Excel: Insert > PivotTable, check the range, choose New Worksheet or Existing Worksheet, then OK. Google Sheets: Insert > Pivot table, check the range, then Create.
Step 3
Excel: in the PivotTable Fields pane, drag Region into Rows and Sales into Values. Google Sheets: in the Pivot table editor, click Add next to Rows and pick Region, then Add next to Values and pick Sales.
Step 4
Sales shows as Sum of Sales (SUM of Sales in Google Sheets). Each region appears once, with its total.

Example 2 Count orders per person

D1
ABCDE
1OrderTaken byJosh 2, Maya 3, Grand Total 5COUNTA of Order
2Ord-201MayaJosh2
3Ord-202JoshMaya3
4Ord-203MayaGrand Total5
5Ord-204Maya
6Ord-205Josh
Rows: Taken by · Values: COUNTA of Order gives the highlighted result in D1.

Step by step

Step 1
Select A1:B6 and insert a pivot table as in the first example.
Step 2
Put Taken by in Rows and Order in Values.
Step 3
Order is text, so it can't be added up. Excel uses Count automatically (Count of Order). In Google Sheets, check the Summarise by list says COUNTA, and choose it if not.
Step 4
To switch a number field from Sum to Count in Excel, click the field in Values > Value Field Settings > Count.

Common mistakes

Excel and Google Sheets

In Excel: Insert > PivotTable. Drag fields between the Filters, Columns, Rows and Values boxes. Change Sum to Count in Value Field Settings. Refresh with right-click > Refresh.

In Google Sheets: Insert > Pivot table. In the editor panel, use the Add buttons next to Rows, Columns, Values and Filters. Change SUM to COUNTA in Summarise by. It updates by itself when the data changes.

Now practise it

Reading gets you started; doing it under a clock is what the test checks. Practise this skill on its own, easier tasks first, then take a mock.

Practise in the Excel style Practise in the Google Sheets style

Skill drills come with the 30-day and 90-day passes. No pass yet? Try the free five-task mini-mock, no account needed.