Sub topic 2
What slicers are and why they help
This chapter explains what a slicer is, how it works internally, and where it beats the filters you already know. It assumes you can build a PivotTable from a range or Excel Table, drag fields into the Rows, Columns, Values, and Filters areas, and find contextual ribbon tabs. The next chapter covers the insertion steps.
What a slicer is
A slicer is a filter control that sits on the worksheet as a box of buttons. Each button is one item from a field in your data. For a Region field, the buttons might be East, North, South, and West. Clicking a button filters the PivotTable to that item. The button shows its state: a highlighted button is selected, and a plain or greyed one is not.
Three properties define a slicer:
- It shows the current filter state at all times. You do not have to open a drop-down to see what is filtered.
- It is a floating object, like a chart or a shape. It sits above the cells and does not push rows or columns around.
- It filters one field. To filter by Region and by Product, you use two slicers.
Slicers first appeared in Excel 2010 for PivotTables. Excel 2013 added slicers for Excel Tables and also introduced timelines, which the chapters on dates cover.
The filters you already have
Before slicers, you had two ways to filter a PivotTable.
- Field drop-down filters. Each field in Rows or Columns has an arrow with check boxes, label filters, and value filters.
- Report filters. A field dragged to the Filters area appears above the PivotTable as a one-cell drop-down.
Both work, but both hide their state. A report filter showing "(Multiple Items)" does not tell you which items are selected until you open it. A reader of a printed or shared report may not realize the numbers are filtered at all.
| Feature | Field drop-down | Report filter | Slicer |
|---|---|---|---|
| Shows selected items without opening it | No | No | Yes |
| Needs the field in the PivotTable layout | Yes | Yes (in Filters area) | No |
| Filters several PivotTables from one control | No | No | Yes (with Report Connections) |
| Takes up grid cells | No | Yes | No (floats) |
| Offers label and value filters | Yes | No | No |
| Fits on a small screen | Yes | Yes | Needs space |
The "needs the field in the layout" row is easy to overlook. A slicer can be built on any field in the source data, even one that is not in the PivotTable. This means you can filter by Salesperson without ever placing Salesperson in Rows, Columns, or Filters.
How a slicer works internally
A slicer is not attached directly to a PivotTable. Two pieces are involved:
- The slicer is the visible box of buttons.
- The slicer cache is a hidden workbook object that stores the field and the current selection. The slicer cache is named after the field, for example
Slicer_Region.
The slicer cache is connected to one or more PivotTables, and it applies its selection to each of them. A PivotTable can be connected only if it was built on the same pivot cache as the slicer's source. A pivot cache is the in-memory copy of the source data that PivotTables read from. PivotTables created from the same range through copy and paste share a pivot cache. PivotTables created separately by running Insert > PivotTable twice usually do not share one, and a slicer cannot connect to them. That is the cause of most "my slicer won't connect" problems, and the troubleshooting chapter returns to it.
This design explains behavior that can seem odd at first:
- Deleting a slicer from the sheet removes the slicer but may leave the slicer cache in the workbook until you delete it, or until you close the workbook.
- Copying a slicer to another sheet creates a second slicer that shares the same slicer cache. Selecting items in either one changes both.
- Two slicers on the same field share one selection. Changing one changes the other.
What selection looks like in practice
Suppose a PivotTable shows total Sales by Product, and you add a slicer for Region. Initially every Region button is selected, which means no filter. Click West, and the PivotTable shows only West sales. Hold Ctrl and click North, and it shows West and North together. The PivotTable's totals change, and the slicer shows exactly which regions produced them.
If you add a second slicer for Year, the two slicers combine. Clicking West and 2025 shows West sales for 2025. Each slicer narrows the result further, like an AND condition. Within a single slicer, multiple selections act like an OR: West or North.
Slicers also react to each other. If you select 2025 in the Year slicer, a Region button with no 2025 rows appears dimmed to show it has no data under the current filters. The slicer settings chapter covers how to control that behavior.
Why slicers help
The filter state is visible. Anyone who opens the workbook can see what is selected. This lowers the risk of someone reading filtered numbers as totals.
Filtering is fast. One click replaces a sequence of opening a drop-down, clearing "Select All", ticking items, and confirming. For a reader exploring data, that speed changes how much they explore.
One control can drive many PivotTables. With Report Connections, a single Region slicer can filter a sales table, a profit chart, and a product breakdown at once. Report filters cannot do this without macros.
Charts get filter controls. A PivotChart is tied to its PivotTable, so a slicer filters the chart too. Charts have no usable on-sheet filter control of their own beyond the field buttons, which many people hide for appearance.
Readers need no PivotTable knowledge. A manager can click buttons without knowing what Rows and Filters areas are, which suits reports you distribute.
Limits and trade-offs
Slicers are not the best choice everywhere.
- They need space. A field with 200 items makes a long list of buttons. A drop-down handles long lists better, since you can type to search.
- They support item selection only. There are no "greater than" value filters and no "begins with" label filters. For those, use the field's drop-down. A top-10 filter likewise stays on the field drop-down.
- They do not help with dates by themselves. Slicers can list dates as buttons, but a timeline is built for date ranges.
- They can mislead if hidden. A slicer pushed off-screen or placed on another sheet still filters the PivotTable. Keep slicers near the data they control, or label them clearly.
- File compatibility matters. A workbook opened in Excel 2007 or earlier does not show slicers. Some other spreadsheet programs also drop them.
Common misunderstandings
- "The slicer is part of the PivotTable." It is a separate object. Moving or deleting the PivotTable does not delete the slicer, and the slicer stays on the sheet.
- "A slicer works with any PivotTable on the sheet." It works only with PivotTables that share its pivot cache and are connected through Report Connections.
- "Clearing the slicer deletes it." Clearing the filter returns all buttons to selected. The slicer remains.
- "Slicers replace report filters." For one PivotTable with a long list field, a report filter is often simpler. The choosing chapter gives criteria.
Summary
A slicer is a visible, clickable filter on one field, backed by a slicer cache that applies its selection to every connected PivotTable on the same pivot cache. Its main strengths are visible state, speed, and control of several PivotTables from one place. Its main weaknesses are screen space, no value or label filters, and the shared pivot cache requirement.
Exercise
You have two PivotTables on one sheet, each created separately with Insert > PivotTable from the same data range. You add a Region slicer to the first one. The second PivotTable does not appear in Report Connections. What is the likely cause, and how does a slicer decide which PivotTables it can filter?
Show answer
The two PivotTables most likely use different pivot caches, because each was created separately. A slicer cache can connect only to PivotTables that share the pivot cache of the slicer's source. To fix it, create the second PivotTable by copying the first one (so they share a cache), or rebuild it from the first PivotTable's cache, then connect it in Report Connections.
Exercise
A colleague says their Region and Year slicers each have two items selected, West and North in one and 2024 and 2025 in the other. What rows does the PivotTable include?
Show answer
Rows that match West or North in Region and also match 2024 or 2025 in Year. Selections within one slicer combine as OR, and separate slicers combine as AND.