Rearrange a PivotTable with Rows, Columns and Filters
PivotTables10 min
Builds on Summarize a list with a PivotTable.
A sales manager for a chain of coffee shops in Ireland already has a PivotTable of sales by store. Now the director wants to know which product sells where, for this year only, and a second report would take an afternoon to build.
How it works
The PivotTable Fields pane has four areas, and a field does a different job in each one.
| Row | A | B |
|---|---|---|
| 1 | Area | What the field does |
| 2 | Rows | One row per item, down the side |
| 3 | Columns | One column per item, across the top |
| 4 | Values | The number added up where a row meets a column |
| 5 | Filters | A drop-down above the report that limits it to the items you pick |
Drag a field from one area to another, or out of the pane to remove it, and the report is rebuilt at once. The list doesn't change, so you can try a layout and drag it back.
Two fields in Rows nest. The first is the outer group and the second breaks each group down, with a subtotal on each outer item's row. Swap their order and the report groups the other way.
The Design tab sets the totals. Subtotals puts each group's subtotal at the top or the bottom of the group, or hides it, and Grand Totals turns the Grand Total row and column on or off. The menu names them by what they add up: On for Rows Only keeps the column on the right, which totals each row, and On for Columns Only keeps the Grand Total row.
Example
The manager drags Store to Rows, Product to Columns and Sales to Values.
- Step 1: Store in Rows gives one row per store.
- Step 2: Product in Columns gives one column per product.
- Step 3: Where Dublin meets Coffee, the PivotTable adds the rows that match both, 2 and 7, and shows €6,740.
To show this year only, she drags Year to Filters and picks 2026 in the drop-down above the report.
Common mistakes
- Two fields in Rows in the wrong order. With Rep above Region, each person becomes a group with their region under them. Drag Region to the top.
- A number field in Rows. Every amount becomes a label of its own instead of being added up. Numbers go in Values.
- A field with dozens of items in Columns, which makes the report too wide to read. Put the field with fewer items across the top.
- A field left in Filters with (All) showing. The report shows every item together until you pick some in the drop-down.
In short
- Rows run down the side, Columns across the top, Values fill the middle and Filters sit above.
- Each value is the total of the rows that match both its row label and its column label.
- With two fields in Rows, the first one is the outer group.
Practice
5 exercises · free, no account needed
- Not started
1. Departments down, quarters across
PivotTable · easy
- Not started
2. Show one year with a report filter
PivotTable · medium
- Not started
3. List the reps under their regions
PivotTable · medium
- Not started
4. What a field in Filters shows
Quiz · easy
- Not started
5. Keep only the Grand Total row
PivotTable · medium