Filtering a PivotTable: report filter, label filters and value filters
Filter a PivotTable by region, label or value: the Filters area, Label Filters, Top 10, a separate sheet per region, and the hidden traps of filtered totals.
A big report rarely needs everything at once: your manager asks only about Samarkand, while marketing wants to see the top two managers. You don’t have to rebuild the PivotTable each time — just filter it.
A PivotTable has three ways to filter:
- Report filter — a field in the Filters area: the whole report narrows to one or more values.
- Label Filters — by row or column labels: “begins with”, “contains”.
- Value Filters — by numbers: “top 5”, “greater than 10 million”.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | Samarkand | ||
| 2 | ||||
| 3 | Row Labels | Sum of Amount | ||
| 4 | Laptop | 8 500 000 | ||
| 5 | Monitor | 12 000 000 | ||
| 6 | Grand Total | 20 500 000 | ||
| 7 |
Report filter: narrowing the whole report
1
Drag the Region field to the Filters area. A filter appears above the PivotTable (in row 1), currently set to (All).
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | (All)1 | ||
| 2 | ||||
| 3 | Row Labels | Sum of Amount | ||
| 4 | Laptop | 51 000 000 | ||
| 5 | Monitor | 21 600 000 | ||
| 6 | Printer | 16 000 000 | ||
| 7 | Grand Total | 88 600 000 | ||
| 8 |
2
Click the arrow in B1 and pick Samarkand. Need several regions? Tick Select Multiple Items at the bottom and check the ones you want. Click OK.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Region | (All) | ||
| 2 | ||||
| 3 | Row Labels | Sum of Amount | ||
| 4 | Laptop | 51 000 000 | ||
| 5 | Monitor | 21 600 000 | ||
| 6 | Printer | 16 000 000 | ||
| 7 | Grand Total | 88 600 000 | ||
| 8 |
3
The report recalculates (the result above) and the button in B1 shows a filter icon. With several regions selected, B1 says (Multiple Items) — and doesn’t tell you which ones, so keep that in mind.
Value Filters: the top 2 managers
1
Put the Manager field in Rows. Click the arrow next to Row Labels → Value Filters → Top 10....
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Aziz | 35 100 000 | ||
| 3 | Dilnoza | 20 500 000 | ||
| 4 | Javohir | 26 600 000 | ||
| 5 | Malika | 6 400 000 | ||
| 6 | Grand Total | 88 600 000 | ||
| 7 |
2
In the dialog choose Top, the number 2, Items and Sum of Amount — that is, “the 2 largest items by amount”.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Aziz | 35 100 000 | ||
| 3 | Dilnoza | 20 500 000 | ||
| 4 | Javohir | 26 600 000 | ||
| 5 | Malika | 6 400 000 | ||
| 6 | Grand Total | 88 600 000 | ||
| 7 |
3
Click OK. Two managers remain, listed alphabetically. To sort them: right-click → Sort → Sort Largest to Smallest.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Aziz | 35 100 000 | ||
| 3 | Javohir | 26 600 000 | ||
| 4 | Grand Total | 61 700 0001 | ||
| 5 |
Label Filters and simple checkboxes
The Row Labels arrow offers two more ways:
- Checkbox list — untick the items you don’t need. For a long list, type part of a name into the Search box at the top.
- Label Filters — a condition on the label: Begins With, Contains, Does Not Equal, Between. For example, keep products whose name contains “Monitor” — new monitor models will fall into the filter automatically.
Date fields get Date Filters instead: This Month, Last Quarter, Between and more.
Pro level: a separate sheet for every region in one click
Do you send each regional manager their own report every month? No need to copy by hand:
- Keep Region in the Filters area.
- PivotTable Analyze → the arrow next to Параметры → Show Report Filter Pages....
- Select Region and click OK.
Excel creates a sheet for every region (Bukhara, Samarkand, Tashkent), each with the PivotTable filtered to that region. Even for 30 branches it takes seconds.
One more pro rule: (Multiple Items) in the Filters area tells the reader nothing. If the report is for other people, use a Slicer instead — the selected values are always visible on its buttons.
Try it in the simulator
Recreate the Samarkand filter with a formula: type =СУММЕСЛИМН($C$2:$C$8;$A$2:$A$8;"Samarkand";$B$2:$B$8;D2) in E2 and fill it down to E4. Laptop — 8500000, Monitor — 12000000, Printer — 0 (the PivotTable doesn’t show it at all).
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Region | Product | Amount | Product | Samarkand | |||||||||||||||||||
| 2 | Tashkent | Laptop | 25500000 | Laptop | ||||||||||||||||||||
| 3 | Samarkand | Monitor | 12000000 | Monitor | ||||||||||||||||||||
| 4 | Tashkent | Printer | 6400000 | Printer | ||||||||||||||||||||
| 5 | Bukhara | Laptop | 17000000 | |||||||||||||||||||||
| 6 | Samarkand | Laptop | 8500000 | |||||||||||||||||||||
| 7 | Tashkent | Monitor | 9600000 | |||||||||||||||||||||
| 8 | Bukhara | Printer | 9600000 | |||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 | ||||||||||||||||||||||||
| 12 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.