Smart Systems for Home

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

Can I Add a Filter to a Chart in Excel? Yes, Here's How

· 5 min read · Home Tech

In this article
  1. Why Charts and Filters Work Together in Excel
  2. Method 1: Filter the Source Data Directly
  3. Method 2: Use a PivotChart for Interactive Filtering
  4. Method 3: The Built-in Chart Filters Button
  5. Using Excel Tables as Chart Source Data
  6. Common Problems and Fixes
  7. Filtering vs. Slicers and Timelines
  8. Frequently Asked Questions

Yes, you can filter a chart in Excel, though charts don't have their own built-in filter buttons in the usual sense. The most common method is to add Filter buttons to the chart's source data (or format the data as an Excel Table), and the chart updates automatically when you filter the data. Excel charts also have a built-in Chart Filter option you can use directly on the chart itself.

Why Charts and Filters Work Together in Excel

An Excel chart does not store its own copy of the data; it reads from a range of cells. By default, a chart only plots the cells that are currently visible. That means when you hide rows or columns, or apply a filter to the source range, the chart redraws using only the visible data. This behavior is the foundation of every filtering technique described below.

One important exception: if your source data lives on a different worksheet from the chart, hidden rows will not automatically be excluded. In that case, you need to change a chart setting first (covered below under common problems).

Method 1: Filter the Source Data Directly

This is the simplest approach and works in every modern version of Excel, including Excel for the web.

  1. Select any cell in your chart's source data range.
  2. Go to Data > Filter (or press Ctrl+Shift+L). Drop-down arrows appear in the header row. Exact labels can differ slightly between Excel versions and platforms.
  3. Click a drop-down arrow and uncheck the values you want to exclude, or use a number or text filter.
  4. The chart updates instantly to show only the filtered rows.

To restore everything, click the drop-down again and choose Clear Filter, or press Ctrl+Shift+L to remove the filter buttons entirely.

Method 2: Use a PivotChart for Interactive Filtering

A PivotChart is a chart built on a PivotTable, and it's the best option when you want clickable filters without touching the underlying rows.

  1. Select your data and go to Insert > PivotChart (Excel creates a PivotTable and a linked chart together).
  2. Arrange your fields: put categories in the Axis (Categories) area and values in the Values area.
  3. Drag a field such as Region or Product into the Filter area to create a drop-down directly above the PivotTable that controls the chart.
  4. Click any drop-down on the PivotChart itself to check or uncheck specific items interactively.

PivotCharts also come with expand/collapse buttons (the +/- icons) so you can drill between levels of a date or category hierarchy without changing anything in the source data.

Method 3: The Built-in Chart Filters Button

When you click a chart in Excel (Windows and Mac desktop versions), small buttons appear to the right of it: a plus sign for Chart Elements, a paintbrush for Styles, and a funnel icon for Chart Filters.

  1. Click the chart to select it.
  2. Click the funnel-shaped Chart Filters button at the chart's upper-right edge.
  3. On the Values tab, check or uncheck series or data points to include, then click Apply.

This changes only what the chart displays; the worksheet data stays untouched. Note that this button is available on regular charts, not PivotCharts (PivotCharts use their own field buttons), and it may not appear in Excel for the web or older versions.

Using Excel Tables as Chart Source Data

Formatting your data as a Table (Ctrl+T) before charting it is a good habit. Tables include filter buttons in the header row automatically, and charts built on a Table automatically grow when you add new rows, so you get filtering and auto-expansion together. One caveat: when a chart is based on a filtered Table, some chart types and versions behave differently with hidden rows, so verify after filtering that the chart shows what you expect.

Common Problems and Fixes

  • Chart still shows filtered-out data: Click the chart, click Chart Design (or Design) > Select Data, then click Hidden and Empty Cells and make sure Show data in hidden rows and columns is unchecked. This setting is per chart, and it's the usual culprit when the chart ignores your filters, especially when the chart is on a separate sheet from the data.
  • #N/A or blank gaps after filtering: If formulas return errors in hidden rows, the chart may plot gaps. Wrap formulas in IFERROR or NA() appropriately, or use the same Hidden and Empty Cells dialog to choose how blanks and errors display.
  • Chart Filters button missing: Make sure the chart is selected and you're using a desktop version of Excel. If it's still not visible, use Data > Filter on the source range instead.
  • Filter arrows don't appear: The range may have blank header cells or merged cells. Give each column a unique header in a single cell and try again.

Filtering vs. Slicers and Timelines

For PivotCharts, slicers and timelines are an even friendlier way to filter. Select the PivotChart, go to PivotChart Analyze (or Analyze) > Insert Slicer, pick a field, and you get clickable buttons that filter the chart with one touch; a Timeline does the same for date fields. If you want slicers for a regular chart, a common trick is to build a small helper PivotTable and connect the slicer to it, but the straightforward path is simply to use a PivotChart from the start.

Frequently Asked Questions

Can I add a slicer to a normal Excel chart?

Not directly. Slicers only connect to Excel Tables and PivotTables/PivotCharts. To get slicer control over a regular chart's data, either convert the chart to a PivotChart or base the chart on a filtered Table and filter the Table instead.

Does filtering a chart change my data?

No. Filters, whether applied to the source range or through the Chart Filters button, only hide rows or exclude points from the display. Nothing is deleted, and clearing the filter brings everything back.

Why does my chart ignore hidden rows?

The chart's Hidden and Empty Cells setting has likely been set to show data in hidden rows and columns. Click the chart, go to Chart Design > Select Data > Hidden and Empty Cells, and uncheck that option. This often happens with charts placed on a different worksheet from their data.

Can I filter a chart in Excel for the web?

Yes, by applying filters to the source data range with Data > Filter; the chart updates as you filter. The on-chart funnel Chart Filters button and some slicer features are more limited or unavailable in the browser version compared with desktop Excel.

What's the best way to make a chart interactive for others?

Use a PivotChart with slicers or a filter field. Viewers can then click buttons to change what the chart shows without editing any cells, which is far safer than letting people filter raw data directly.