Blog / Pivot tables

How to add a slicer in Excel: step by step

4 November 2026 ยท 7 min read

Add a slicer to a PivotTable or Excel table to filter it with buttons. Select several items, clear filters and connect one slicer to several PivotTables.

A slicer is a panel of buttons that filters a PivotTable or an Excel table. Each button is one value from a column, such as North or South. Click a button and the table shows only the rows that match it. Hold Ctrl and click a second button to add it. The selected buttons are highlighted, so you can see the current filter at a glance, without opening a drop-down arrow.

To add one, click a cell in your PivotTable or table, go to the Insert tab, click Slicer, tick the column you want and click OK. The steps below cover the details: how to prepare your data, how to use the buttons, how to connect one slicer to several PivotTables, and the mistakes that catch people out.

Before you start: choose the right kind of data

A slicer can filter two kinds of data:

Your list should have one header row, with a unique name for each column, and no blank rows inside the data. The best slicer columns have a small set of repeated values, such as Region, Department or Status. A column with hundreds of different values, such as invoice numbers, gives you a long panel of buttons that is hard to use.

Method 1: Add a slicer to a PivotTable

  1. Click any cell inside the PivotTable.
  2. In Excel for Windows, go to the Insert tab and click Slicer. In Excel for Mac or Excel for the web, go to the PivotTable Analyze tab and click Slicer.
  3. In the Insert Slicers dialog box, tick the field you want, such as Region.
  4. Click OK. The slicer appears on the sheet with one button for each value.

You can tick more than one field in step 3 to create several slicers at once, such as one for Region and one for Rep. A slicer can be moved by dragging it, and resized by selecting and holding its corner.

Method 2: Add a slicer to an Excel table

  1. Click any cell inside the table.
  2. Go to the Insert tab and click Slicer.
  3. Tick the column you want, then click OK.

Table slicers work in Excel for Windows and Excel for Mac. Excel for the web does not create them, so use the desktop app for tables.

Use the buttons

Once a slicer is on the sheet, the rest is simple:

Connect one slicer to several PivotTables

If you have two PivotTables built from the same data, one slicer can filter both of them. Slicers can only connect to PivotTables that share the same data source, so build both from the same list.

In Excel for Windows, select the slicer, go to the Slicer tab, click Report Connections, and tick the PivotTables you want. On a Mac, select the slicer, go to the Slicer tab, click Report Connections, tick the PivotTables and click OK. In Excel for the web, select the slicer, go to the Slicer tab, click Slicer Settings, and under PivotTable Connections, tick the PivotTables and click OK.

Worked examples: check the numbers

A slicer is easy to trust once you have checked a total yourself. The table below has eight sales in columns A to C. Each example puts its formula in column F and tests a result you would see with a slicer.

RepRegionSales
AnaNorth120
BenSouth60
CalNorth75
DeeWest80
EliSouth150
FayWest45
GusNorth110
HanaSouth35

Clicking North in a Region slicer should show three rows. The total of those rows is the SUMIF below:

F2=SUMIF(B2:B9,"North",C2:C9)
ABCDEF
1RepRegionSalesNorth total
2AnaNorth120305
3BenSouth60
4CalNorth75
5DeeWest80
6EliSouth150
7FayWest45
8GusNorth110
9HanaSouth35
10

Result: 305. 120, 75 and 110 are the North sales.

Now hold Ctrl and click West as well. The slicer shows North and West together, so the total is the two SUMIF results added:

F2=SUMIF(B2:B9,"North",C2:C9)+SUMIF(B2:B9,"West",C2:C9)
ABCDEF
1RepRegionSalesNorth and West
2AnaNorth120430
3BenSouth60
4CalNorth75
5DeeWest80
6EliSouth150
7FayWest45
8GusNorth110
9HanaSouth35
10

Result: 430. 305 from North plus 125 from West.

To check how many rows a single button shows, use COUNTIF. South has three rows, Ben, Eli and Hana:

F2=COUNTIF(B2:B9,"South")
ABCDEF
1RepRegionSalesSouth rows
2AnaNorth1203
3BenSouth60
4CalNorth75
5DeeWest80
6EliSouth150
7FayWest45
8GusNorth110
9HanaSouth35
10

Result: 3. Three rows say South.

When you click Clear Filter, every row is back, so the grand total is the sum of the whole column:

F2=SUM(C2:C9)
ABCDEF
1RepRegionSalesGrand total
2AnaNorth120675
3BenSouth60
4CalNorth75
5DeeWest80
6EliSouth150
7FayWest45
8GusNorth110
9HanaSouth35
10

Result: 675. The regions add up to 305, 245 and 125.

The North, West and South totals together make 675, which matches the grand total.

Common mistakes

Frequently asked questions

Does a slicer change my original data? No. A slicer on a PivotTable filters only the report. A slicer on a table hides rows while it is filtered, and every row returns when you clear the filter. Your values are not changed.

How do I remove a slicer? Click Clear Filter first, so the table or PivotTable shows every row. Then select the slicer and press Delete, or right-click it and choose Remove. Your data stays as it is.

Can a slicer and a formula work together? Yes. A SUMIF or COUNTIF formula reads all of its rows, so it always gives the same answer, whatever the slicer shows. Use these formulas to check your numbers, as in the examples above. For the visible rows of a table, use SUBTOTAL.

Which versions support these steps? The steps follow Microsoft's current instructions for slicers, which list Excel 2021, Excel 2024 and Microsoft 365 on Windows and Mac. Older versions may place the buttons in a different tab, so check your version's help if a step does not match.

Practice filtering with slicers

Reading the steps is a start, but slicers make more sense once you have clicked them yourself. The PivotTable basics lesson gives you a sales list to summarize, and the more PivotTables lesson goes further with counts and extremes. For the formulas that check your numbers, see the guides to SUMIF, COUNTIF and SUMIFS.

Practice it: PivotTable basics

Type the formulas yourself in a real spreadsheet, with instant feedback on every answer. Your first five lessons are free.

Start the lesson

Keep reading