Pivot Tables

How to Add a Slicer to a Pivot Table

Add a slicer to an Excel pivot table for clickable filters, connect one slicer to several pivot tables, and clear filters with the icon in its corner.

On this page
  1. Insert a slicer
  2. Use the buttons
  3. Connect one slicer to more pivot tables
  4. Timelines for dates
  5. Format and size
  6. Troubleshooting

A slicer is a set of buttons that filters a pivot table. Click a button and the table shows only the matching rows. Slicers are easier to read than a filter drop-down, and they show which filters are active at a glance.

Insert a slicer

  1. Click any cell in the pivot table.
  2. Go to the PivotTable Analyze tab. In the Filter group, choose Insert Slicer.
  3. Tick the fields you want buttons for, such as Region or Product.
  4. Click OK. A slicer appears for each field you chose.

Tab names and the ribbon layout change between versions of Excel. If you can’t find the command, look for it near the other pivot table tools.

Use the buttons

  • Click a button to show only that item.
  • Hold Ctrl and click to select several items.
  • Turn on the multi-select option, the icon in the corner of the slicer, to tick several items with single clicks.
  • Click the Clear Filter icon in the corner to show everything again.

Buttons that appear greyed out have no rows matching the other selections, so they can’t add anything to the current view.

Connect one slicer to more pivot tables

A slicer can control several pivot tables built from the same data. Right-click the slicer and choose Report Connections. Tick the pivot tables you want it to control. Only pivot tables that share the same source appear in that list.

Timelines for dates

For a date field, Excel can add a timeline instead of a slicer. A timeline has buttons for years, quarters, months or days. Go to PivotTable Analyze, choose Insert Timeline, then pick the date field.

If you’d rather see a summary by month without buttons, group dates by month in pivot table shows that approach.

Format and size

Click the slicer and use the Slicer tab to change the number of columns, the button style and the size. Making the slicer wider with more columns can make a long list easier to scan.

Troubleshooting

  • The slicer doesn’t reflect new data. Refresh the pivot table with Data, then Refresh All.
  • A second pivot table doesn’t respond. Right-click the slicer and check Report Connections. The second pivot table may not share the same source.
  • Buttons are greyed out. That’s expected when a combination of selections has no matching rows. Clear the filter to see all items again.

The complete guide to pivot tables

What Is a Pivot Table in Excel
Read the guide

Keep exploring

Guides from other topics

All topics →