How to Add a Filter to Sum Amount in Pivot Table
In this article
To add a filter that controls the sum of amounts in a pivot table, you use the pivot table's filter area or a value filter. The exact steps depend on your spreadsheet app. In Excel, drag the field you want to filter by into the Filters area, then use the filter drop-down to choose items. In Google Sheets, use the pivot table editor to add a filter. This guide covers both, plus common mistakes and troubleshooting.
What You'll Need
- A spreadsheet with your source data (amounts and the field you want to filter by).
- An existing pivot table, or permission to create one.
- Excel (desktop or web) or Google Sheets. Menu labels can differ slightly by version, device, or region.
Step-by-Step
- Check your source data. Make sure the amount column contains numbers, not text, and that the column you want to filter by has a header. Select the data range and confirm there are no blank header cells.
- Select the pivot table. Click any cell inside it so the pivot table tools appear.
- Open the field list or editor. In Excel, the PivotTable Fields pane should appear on the right. If it does not, right-click the pivot table and choose Show Field List. In Google Sheets, click the pivot table, then click the Edit button that appears, or open Data > Pivot table.
- Add the filter field. In Excel, drag the field you want to filter by (for example, Region or Category) into the Filters area at the bottom of the field list. In Google Sheets, in the Pivot table editor, find the Filters section and click Add, then choose your field.
- Apply the filter. In Excel, click the drop-down arrow next to the filter field above the pivot table, tick the items you want, and click OK. In Google Sheets, use the filter control in the editor to select values or set a condition.
- Verify the sum. Check that the Grand Total and the visible rows now reflect only the filtered items. If the sum looks wrong, confirm the amount field is in the Values area and set to SUM, not COUNT.
- Add a value filter if needed. To filter based on the summed amount itself (for example, show only categories where the sum is above a threshold), use a value filter. In Excel, click the drop-down on the row or column label, choose Value Filters, then Greater Than, and enter your number. In Google Sheets, use Filter by condition in the pivot table editor and choose a custom formula or condition on the value field.
- Refresh if the source data changed. In Excel, right-click the pivot table and choose Refresh. In Google Sheets, pivot tables usually update automatically, but you can reopen the editor to confirm the filter is still applied.
Common Mistakes
- Filtering the source data instead of the pivot table. Hiding rows in the source sheet does not automatically filter the pivot table. Use the pivot table's own filter controls.
- Putting the filter field in the wrong area. Dragging a field into Rows or Columns instead of Filters changes the layout rather than filtering the sum. Use the Filters area for a top-level filter.
- Amount field set to COUNT. If the sum looks like a count of rows, change the value field setting to SUM. In Excel, click the value field drop-down and choose Value Field Settings. In Google Sheets, use Summarize by in the editor.
- Text-formatted numbers. Amounts stored as text are ignored or counted instead of summed. Convert them to numbers before building the pivot table.
- Forgetting to refresh. After editing source data, the pivot table may show old sums until you refresh (Excel) or reopen the editor (Google Sheets).
Tips
- Use a slicer in Excel for a visual, clickable filter that controls the pivot table sum without opening drop-downs.
- Name your source range as a table so the pivot table expands automatically when you add rows.
- Keep one filter field per purpose. Multiple filters in the Filters area can interact and hide rows you expected to see.
- Check the Grand Total row after filtering. It should equal the sum of the visible filtered rows, not the full dataset.
- In Google Sheets, use Filter by condition with a custom formula for complex filters, such as amounts greater than a cell reference.
Troubleshooting
If the filter does not change the sum, first confirm the filter is applied to the pivot table and not to the source sheet. In Excel, look for the filter icon next to the field name above the pivot table. In Google Sheets, reopen the pivot table editor and check the Filters section.
If the sum is blank or zero, check that the amount column contains numbers. Select the column and look at the status bar; it should show a sum, not just a count. If it shows count, the values are text. Convert them with Value or by retyping.
If the filter drop-down is missing, the field may be in the Values area instead of Filters. Remove it from Values and add it to Filters. In Excel, also check that the field list is visible and that you are not in a protected sheet.
If the pivot table shows old results after a data change, refresh it. In Excel, right-click and choose Refresh. In Google Sheets, close and reopen the editor. If the problem persists, check that the source range still includes all rows.
If a value filter hides everything, the threshold may be too high or the value field may be set to COUNT. Lower the threshold or change the summarization to SUM. In Excel, use Value Filters > Greater Than and enter a smaller number.
Frequently Asked Questions
Can I filter a pivot table by the summed amount?
Yes. Use a value filter on the row or column label. In Excel, choose Value Filters > Greater Than. In Google Sheets, use Filter by condition on the value field.
Why does my pivot table sum show a count instead?
The value field is set to COUNT. Change it to SUM in Value Field Settings (Excel) or Summarize by (Google Sheets). Also check that the amount cells are numbers, not text.
Does filtering the source data update the pivot table?
No. Hiding rows in the source sheet does not filter the pivot table. Use the pivot table's Filters area or a slicer instead.
Can I use a slicer to filter the sum in Excel?
Yes. Select the pivot table, then Insert > Slicer, choose your field, and click items in the slicer to filter the pivot table and its sum.
Why is my filter drop-down not showing?
The field may be in the Values area or the sheet may be protected. Move the field to Filters and unprotect the sheet if needed.
How do I remove a filter from a pivot table?
In Excel, click the filter drop-down and choose Clear Filter. In Google Sheets, open the pivot table editor and remove the filter from the Filters section.