Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Add a Row Filter to a Pivot Table

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To add a row filter to a pivot table, drag the field you want to filter by into the Filters area (called Filter in some versions), then use the drop-down arrow on that field in the pivot table to choose which items to show. In Excel, you can also right-click a row label and choose Filter to filter by that item. The exact labels vary slightly by version, device and region, but the core steps are the same across Excel for Windows, Mac and the web.

What You'll Need

  • A pivot table that is already built from a data source (a table or range with headers).
  • At least one field in the source data that you want to use as the filter — for example, Region, Month, Category or Salesperson.
  • Excel for Windows, Excel for Mac or Excel for the web. The steps below are written for Excel; the same ideas apply in Google Sheets with slightly different labels.

Step-by-Step

  1. Click anywhere inside the pivot table. This activates the PivotTable Analyze and Design tabs on the ribbon (on Mac they may appear as PivotTable Analyze and Design as well). If you do not see them, you are probably outside the pivot table — click a cell that contains pivot data.
  2. Open the PivotTable Fields pane. If it is not visible, go to PivotTable Analyze > Field List (or right-click the pivot table and choose Show Field List). The pane lists every field from your source data.
  3. Find the field you want to filter by. This is the column from your source data that contains the values you want to include or exclude — for example, the Region column if you only want to see sales for the East region.
  4. Drag that field into the Filters area. In the PivotTable Fields pane, the lower-right area is labeled Filters (sometimes just Filter). Drag the field name from the top list into that box. The field now appears above the pivot table as a filter control.
  5. Click the drop-down arrow next to the filter field above the pivot table. A checklist of all the unique items in that field appears.
  6. Choose the items you want to keep. Tick the boxes for the values you want to show, or use the search box to find a specific item. Clear the (Select All) box first if you want to start from nothing and pick only a few items.
  7. Click OK. The pivot table updates immediately to show only the rows that match your selection. The filter field above the table shows the current selection so you can see at a glance what is being filtered.
  8. To filter a row label directly (for example, to hide one product category), click the drop-down arrow on the row label itself and untick the items you do not want. This is a label filter and works on the row field rather than the Filters area. It is faster for quick exclusions but less visible than a filter field above the table.
  9. To remove the filter, click the drop-down arrow on the filter field and tick (Select All), then click OK. Or drag the field out of the Filters area back to the field list to remove the filter control entirely.

Common Mistakes

  • Dragging the field into the wrong area. Dropping a field into Rows or Columns instead of Filters changes the layout of the pivot table rather than filtering it. Check that the field sits in the Filters box in the PivotTable Fields pane.
  • Filtering the source data instead of the pivot table. Applying an AutoFilter to the source range does not automatically update the pivot table unless you refresh it, and even then the pivot may not respect the hidden rows. Use the pivot table's own filter controls.
  • Forgetting to refresh after changing source data. If you add or edit source rows, the filter list may not show the new items until you right-click the pivot table and choose Refresh.
  • Using a filter field with too many unique values. A field with hundreds of unique items (such as order numbers) makes the checklist unwieldy. Use the search box in the filter drop-down or choose a different field.
  • Expecting the filter to apply to multiple pivot tables. Each pivot table has its own filters. If you have several pivot tables from the same source, you must filter each one separately.

Tips

  • Rename the filter field label above the pivot table by typing over it — useful when the source column name is cryptic.
  • Use the search box inside the filter drop-down to quickly find items in long lists; it filters the checklist as you type.
  • If you need to filter by a condition rather than specific items (for example, sales greater than a value), use a value filter: click the drop-down arrow on a row or column field, choose Value Filters, then pick the condition.
  • Keep the PivotTable Fields pane visible while you work so you can see which area each field is in.
  • If you plan to filter often, consider adding a slicer: PivotTable Analyze > Insert Slicer, then tick the field. Slicers are visual buttons that make filtering faster and clearer than drop-downs.

Troubleshooting

  • The filter drop-down is missing. Make sure the field is actually in the Filters area, not Rows or Columns. If it is in Rows, you will see a drop-down on the row label instead. Also check that the pivot table has a header row enabled (Design > Report Layout > Show in Tabular Form can help).
  • The pivot table does not change after selecting items. Click Refresh (PivotTable Analyze > Refresh) to force an update. If the source data is on another sheet or workbook, confirm the connection is still valid.
  • New items do not appear in the filter list. Refresh the pivot table. If the source range was extended, you may need to change the data source (PivotTable Analyze > Change Data Source) to include the new rows.
  • The filter field shows blank or (blank) items. This means some source rows have empty cells in that column. Either clean the source data or untick (blank) in the filter list.
  • You cannot find the field you want. The field may be hidden in the PivotTable Fields pane. Right-click the field list and choose Show All, or check that the source range includes that column.

Frequently Asked Questions

Can I filter a pivot table by more than one field at a time?

Yes. Drag multiple fields into the Filters area. Each one gets its own drop-down above the pivot table, and the table shows only rows that meet all the selected criteria.

What is the difference between a row filter and a label filter?

A row filter uses a field placed in the Filters area and controls which items appear based on that field's values. A label filter is applied directly to a row or column field's drop-down and hides specific labels from that field. Both change what the pivot table displays, but the row filter is more visible and easier to clear.

Does filtering a pivot table change the underlying data?

No. Filters only hide rows from the pivot table view; the source data is untouched. Clearing the filter brings all rows back.

Why does my pivot table show all items even after I filter?

Check that you applied the filter to the pivot table itself, not to the source range. Also refresh the pivot table after changing the filter selection. If the field is in the Rows area, use the drop-down on the row label instead.

Can I save a filter selection for later?

Yes. Excel saves the current filter state with the workbook. When you reopen the file, the pivot table retains the last filter selection. To keep multiple views, create a copy of the pivot table and apply different filters to each.

How do I filter out blanks in a pivot table?

Click the drop-down arrow on the field, untick (blank) in the list, and click OK. If (blank) does not appear, the source data may have no empty cells in that column, or the pivot table needs a refresh.