How to add a slicer to a PivotTable in Excel

A slicer gives you clickable buttons that filter a PivotTable instantly. This guide shows you how to insert one, connect it to more than one PivotTable, and style it to match a dashboard. It suits anyone building a simple Excel report from a clean data table.

YouTube video: Create a Interactive Consumer Performance Dashboard in Excel | Beginner to Pro

YouTube’s video details do not confirm captions. Check CC in the player for available tracks.

Video length
21 min 52 s
Time to do it
10 minutes
Difficulty
Easy
Steps
8

What you need

Steps

  1. Click any cell inside your PivotTable so the PivotTable Analyze and Design tabs appear on the ribbon.

  2. On the PivotTable Analyze tab, click Insert Slicer. A small dialog lists every field in your data source.

  3. Tick the field you want to filter by, such as Year or Region, then click OK. The slicer appears on the sheet.

  4. Drag the slicer next to your PivotTable. Resize it by pulling the corner handles, and set the button columns in the Slicer tab.

  5. Click a button in the slicer to test it. The PivotTable should update at once to show only that value.

  6. To filter a second PivotTable with the same slicer, right-click the slicer and choose Report Connections.

  7. Tick every PivotTable you want the slicer to control, then click OK.

  8. On the Slicer tab, pick a Slicer Style to match your dashboard colours, and turn on the header if you want a title.

Tips and common mistakes

All PivotTables you connect must share the same data source, or the slicer will not appear in Report Connections.

Hold Ctrl and click several buttons to filter by more than one value at once.

Clear a filter by clicking the funnel icon in the top right of the slicer.

Questions

Why is Insert Slicer greyed out?

You probably have a normal cell range selected instead of a PivotTable cell. Click inside the PivotTable first, and check the file is saved as.xlsx.

Can I use a slicer on a normal table?

Yes. Convert your range to a table with Ctrl+T, then use Insert Slicer on the Table Design tab. It filters rows rather than a PivotTable.

Does the slicer work on Excel for Mac?

Yes, on Excel 2016 and later. The buttons sit on the PivotTable Analyze tab, and Report Connections works the same way.

The notes are drafted automatically from video details and general task knowledge. How the guide was prepared

Report a correction

More in Money & Office

See all