Smart Systems for Home

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

How to Filter a Pivot Table by Rows or Columns

· 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

Filtering a pivot table by rows or columns lets you focus on the exact data you need without altering the underlying source data. You can hide irrelevant categories, isolate a specific product or date range, and make your summary easier to read. This guide works for Microsoft Excel and Google Sheets, where the steps are nearly identical.

What You'll Need

  • A pivot table already created from your data.
  • Access to the field list (usually on the right side of the screen).
  • The source data should have clear headers for each column you want to filter by.

Step-by-Step

  1. Click anywhere inside the pivot table. This activates the PivotTable Tools or Pivot table editor. You'll see the field list appear on the right (in Excel, it's under the Analyze and Design tabs; in Sheets, it's a side panel).
  2. Identify the field you want to filter. Look at the Rows area and Columns area in the field list. These contain the fields that determine how your data is grouped. For example, if you have "Region" in Rows and "Quarter" in Columns, you can filter either one.
  3. Use the dropdown arrow on the row or column label. In the actual pivot table, click the small arrow next to the field name (like "Row Labels" or the column header). A filter menu will open.
  4. Select or deselect items. In the filter menu, you'll see a list of all unique values in that field. Check or uncheck boxes to show or hide specific items. To quickly select just a few, uncheck "Select All" first, then tick the ones you want.
  5. Apply the filter. Click OK (Excel) or Apply (Sheets). The pivot table will instantly update, showing only the rows or columns you kept.
  6. Use label filters for text or dates (Excel). If you want to filter by a condition (like "contains" or "before a date"), click the dropdown arrow, then choose "Label Filters" (for row/column labels) or "Date Filters" if the field is a date. Pick the condition, enter the value, and click OK.
  7. Use value filters to show top/bottom items. To show only the top 5 products by sales, click the dropdown arrow, choose "Value Filters," then "Top 10." Set the number, the value field (like Sum of Sales), and click OK.
  8. Clear a filter. To remove all filters on a field, click the dropdown arrow and select "Clear Filter From..." or choose "All" and click OK.
  9. Filter directly from the field list (alternative). In the field list, hover over the field name in Rows or Columns, click the small arrow that appears, and use the same filter options.
  10. Use slicers (Excel) or filter views (Sheets) for multiple filters. In Excel, go to PivotTable Analyze > Insert Slicer, then choose the fields you want as clickable buttons. In Google Sheets, you can add a slicer via Data > Add a slicer, then assign it to a field.

Common Mistakes

  • Filtering the source data instead of the pivot table. If you filter the raw data, the pivot table may not update correctly or may show blank rows. Always use the pivot's own filters.
  • Forgetting to refresh. If you change the source data, the pivot table won't reflect it until you refresh (right-click > Refresh, or Data > Refresh). Filters remain but may hide new items.
  • Checking "Select All" unintentionally. When you uncheck some items and then later click "Select All," it resets the filter—you may lose your custom selection.
  • Filtering the wrong field. Make sure you're clicking the arrow on the row/column label, not on a value cell. Clicking a value cell may not give you the field filter options.
  • Using label filters on numeric fields. If your row field contains numbers, Excel may show "Number Filters" instead of "Label Filters." That's fine—use the appropriate one.

Tips

  • Use multiple filters together. You can filter both rows and columns at the same time. For example, show only "East" region and only "Q1" and "Q2" quarters.
  • Name your pivot table. In Excel, go to PivotTable Analyze > Options and give it a meaningful name. This helps if you have several pivot tables.
  • Copy a pivot table before filtering. If you need different views of the same data, copy the sheet and filter each copy differently.
  • Use slicers for dashboards. Slicers are visual and let you see which filters are active. They also work across multiple pivot tables if you connect them.
  • Check the "Show items with no data" option. In Excel, right-click a row label > Field Settings > Layout & Print, and uncheck "Show items with no data" to hide blank categories.

Troubleshooting

  • Filter options are grayed out. This usually means the pivot table is not active. Click inside the pivot table first, then try again. If it's still gray, your cursor might be on a chart or outside the pivot.
  • New data doesn't appear in the filter list. The pivot table needs to be refreshed. Right-click the pivot table and choose Refresh. If you added rows/columns to the source, you may need to change the data range (PivotTable Analyze > Change Data Source).
  • Filter shows "(blank)" items. This happens when there are empty cells in the source column. Either fill those cells or filter out the blank by unchecking it.
  • Filter doesn't affect the totals. Pivot table totals update automatically when you filter. If they don't, you might have a calculated field that ignores filters—check the field settings.
  • Can't find the dropdown arrow. In some layouts, the arrow is hidden until you hover over the cell. Move your mouse over the row/column label and look for a small arrow. If it's still missing, go to PivotTable Analyze > Options > Display and check "Show field headers."

Frequently Asked Questions

Can I filter a pivot table by a value, like showing only rows with sales over $1000?

Yes. Click the dropdown arrow on the row label, choose "Value Filters," then "Greater Than." Enter 1000 and select the value field (e.g., Sum of Sales).

How do I filter by date range in a pivot table?

If the date field is in Rows or Columns, click its dropdown arrow and choose "Date Filters." Then pick "Between" and enter the start and end dates. If the field is in Values, you can't filter by date directly—you'd need to add it as a row or column field.

Why does my filter list show only some items?

Excel may have a limit on the number of items shown in the filter list (default is 10,000). If your field has more unique values, the list is truncated. You can increase this limit in PivotTable Options > Data > Number of items to retain per field, but it's usually not needed.

Can I filter multiple fields at once?

Yes. Apply filters to as many row and column fields as you like. Each filter narrows the data further. In Excel, you can also use slicers to control multiple fields visually.

How do I copy only the filtered data from a pivot table?

Select the pivot table, copy it, and paste as values (right-click > Paste Special > Values). This will paste the filtered result as static data. Alternatively, use the "Copy" and "Paste" commands—the filtered rows are what get copied.

Does filtering a pivot table affect the original data?

No. Pivot table filters only change the view of the summary. The source data remains untouched. If you want to filter the source itself, use Excel's AutoFilter or Google Sheets' filter views.