ExcelUnpackUnpack Excel, one formula at a time.
Log inSign up

Lesson 76 · Pivot tables

Filter a pivot table in Excel

Drag a field into the Filters box to show only some rows. Pick what you want from the ▾ above the pivot table, and every number updates to match.

Practice this lesson →Pro lesson. The first 4 lessons are free.

What you will learn

  • Add a filter to a pivot table
  • Use two filters at once

How it works

Drag a field into Filters. The filter shows on the sheet, above the pivot table: the field name in A1 and (All) in B1.

Click the ▾ in B1, pick what you want, like Shipped, and click OK. Now the pivot table only counts the rows you picked.

You can put two fields in Filters. Then both must match.

Where things go

Insert › PivotTablemake a pivot table
Rowsone line for each item
Columnsone column for each item
Valuesthe numbers
Filtersshow only some rows

Example

Make a pivot table. Show the total Amount for each Region. Use only Shipped orders.

The data (first rows):

ABCDEF
1OrderRegionProductMonthAmountStatus
21001NorthLaptopJan$1,370.00Shipped
31002NorthLaptopJan$790.00Shipped
41003WestPhoneJan$460.00Shipped
51004WestTabletJan$320.00Pending
61005WestTabletJan$550.00Shipped
71006WestPhoneJan$710.00Pending
81007NorthTabletJan$430.00Shipped

Click inside the data, then Insert › PivotTable › OK. Rows: Region. Values: Sum of Amount. Filter: Status = Shipped.

The pivot table you get:

Row LabelsSum of Amount
East$4,150.00
North$5,450.00
South$8,070.00
West$8,950.00
Grand Total$26,620.00

When to use it

  • Only shipped orders
  • Only one region or one year
  • Switching a report between groups quickly

Common mistakes

  • Forgetting a filter is onCheck the cells above the pivot table for a filter.
  • Filtering in Rows when you meant FiltersFilters hide rows from the whole pivot table.
  • Picking more than you meantOpen the ▾ and check what is ticked.

Practice it on a real sheet

Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.

Filter a pivot table in Excel: how it works, with examples · ExcelUnpack