Confident CellsExcel practice Start free

PivotTables: rows, columns and more: practice exercises

Two fields in Rows, Columns, two values, Tabular Form, subtotals, grand totals. 6 exercises on real-looking data, each checked as you go. The full lesson is part of Pro.

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: rows, columns and more lesson

How it works

A PivotTable can take more than one field in a box. Two fields in Rows make groups: each region, with its products listed under it. The field at the top of the box is on the outside.

Put the same number in Values twice to see a total and a count side by side. Excel adds Σ Values to Columns to show where they go. The Design button changes how it's laid out: Tabular Form puts each field in its own column, and subtotals and grand totals can be turned off.

More than one field in a box

Put two fields in Rows and the PivotTable groups them: each region, with its own products listed under it, and the region's subtotal on its row.

Filters

Columns

Rows

RegionProduct

Values

Sum of Sales (£)
Row LabelsSum of Sales (£)
North2140
Laptops1350
Phones790
South1610
Laptops600
Phones1010
Grand Total3750

The field at the top of the box is on the outside. To swap them, drag one above the other, or use Move Up in its menu.

Down the side and across the top

Rows goes down the side; Columns goes across the top. “Sales by region and month” is a grid: regions in Rows, months in Columns.

Sum of Sales (£)Column Labels
Row LabelsJanFebGrand Total
North90012402140
South7009101610
Grand Total160021503750

Months and days of the week go in calendar order, not A to Z. A field can only be in one of Rows, Columns and Filters at a time, but it can also be in Values: Salesperson in Rows and Count of Salesperson in Values counts each person's sales.

Two values, and the layout

Put a field in Values twice and change one to Count: you get the total and the number of sales side by side. Excel puts Σ Values in Columns to say where the values go; drag it to Rows to stack them instead.

The Design button has Excel's Design tab choices:

  • Report Layout: Compact (the usual, everything in one column), Outline, or Tabular (each field in its own column, like a normal table).
  • Subtotals: at the top of each group, at the bottom, or not at all.
  • Grand Totals: “On for Rows Only” keeps the Grand Total column; “On for Columns Only” keeps the Grand Total row.

What you'll practise

  1. Make a PivotTable of total sales by region and month, with regions down the side and months across the top.
  2. Show the total sales of each product within each region: Region in Rows, with Product under it in the same box.
  3. This PivotTable lists each product, with the regions inside it. Turn it round so regions are on the outside, with the products inside each one.
  4. For each region, show the total sales and the number of sales side by side.
  5. Someone wants this as a plain list to copy into a report. Use Design to show it in Tabular Form, with no subtotals.
  6. Keep the Grand Total row at the bottom, but take away the Grand Total column on the right.