Slicers and Timelines in Excel: interactive filters for PivotTables
Slicers and Timelines filter a PivotTable with buttons. How to add them, select several values, drive several PivotTables with one slicer and avoid the traps.
A regular PivotTable filter is hidden: you don’t know what’s selected until you click the button, and with several values it just says (Multiple Items). When a manager or colleague reads the report, that’s confusing.
A Slicer is a panel of buttons next to the PivotTable. Each button is one value: Bukhara, Samarkand, Tashkent. Click one and the PivotTable is filtered while the selected button stays highlighted. A Timeline (Excel 2013+) is a special slicer for dates: you pick a period by dragging across it.
Together they turn an Excel report into a real interactive dashboard.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | Region | ||
| 2 | Laptop | 25 500 000 | Bukhara | ||
| 3 | Monitor | 9 600 000 | Samarkand | ||
| 4 | Printer | 6 400 000 | Tashkent1 | ||
| 5 | Grand Total | 41 500 000 | |||
| 6 |
Adding and using a slicer
1
Click any cell in the PivotTable. On the PivotTable Analyze tab (Analyze in Excel 2016) click Вставить срез. The same command is also on the Вставка tab in the Filters group.
2
In the Insert Slicers dialog tick the fields to filter by — for example Region. Tick several fields and you get one slicer per field.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | ||
| 2 | Laptop | 51 000 000 | ||
| 3 | Monitor | 21 600 000 | ||
| 4 | Printer | 16 000 000 | ||
| 5 | Grand Total | 88 600 000 | ||
| 6 |
3
Click OK and the slicer appears on the sheet. Click the Tashkent button: the PivotTable now shows only Tashkent sales (the result above).
4
To select several regions, hold Ctrl while clicking the buttons, or turn on the Multi-Select button in the slicer header (Alt + S).
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | Region | ||
| 2 | Laptop | 34 000 000 | Bukhara | ||
| 3 | Monitor | 21 600 000 | Samarkand | ||
| 4 | Printer | 6 400 000 | Tashkent | ||
| 5 | Grand Total | 62 000 000 | |||
| 6 |
5
To clear the filter, click the funnel icon with the red ✕ in the slicer header, or select the slicer and press Alt + C — all regions are visible again.
Timeline — a slicer for dates
Click inside the PivotTable, choose PivotTable Analyze → Insert Timeline and tick the date field (Date). A timeline appears on the sheet.
- In the list at the top right pick the level: Years, Quarters, Months or Days.
- To select a period, click one tile or drag across several.
- Stretch the selection by dragging its edges.
A Timeline works only with PivotTables and requires real date values in the source column.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Date | ||||
| 2 | Q1 2025 | Q2 2025 | Q3 2025 | Q4 2025 | |
| 3 | |||||
| 4 | Row Labels | Sum of Amount | |||
| 5 | Bukhara | 17 000 000 | |||
| 6 | Samarkand | 8 500 000 | |||
| 7 | Tashkent | 16 000 000 | |||
| 8 | Grand Total | 41 500 000 | |||
| 9 |
One slicer — several PivotTables
1
Create a second PivotTable from the same source (for example by manager), or copy the first one and change its fields.
2
Click the slicer and on the Slicer tab click Подключения к отчётам (or right-click the slicer → Report Connections...).
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Row Labels | Sum of Amount | Row Labels | Sum of Amount | ||
| 2 | Laptop | 25 500 000 | Aziz | 35 100 000 | ||
| 3 | Monitor | 9 600 000 | Malika | 6 400 000 | ||
| 4 | Printer | 6 400 000 | Grand Total | 41 500 000 | ||
| 5 | Grand Total | 41 500 000 | ||||
| 6 |
3
Tick both PivotTables and click OK. Now selecting Tashkent filters both reports at once: products and managers alike show Tashkent only.
Pro level: tuning slicers for a dashboard
- Buttons in a row. Slicer → Columns: 3 — the buttons line up horizontally and the slicer sits compactly above the report.
- Style. Slicer → Slicer Styles — match your corporate colors, or duplicate a style and tweak it.
- No extra header. Slicer Settings → untick Display header.
- For Tables too. In Excel 2013+ a slicer can filter a regular Table: click inside it → Вставка → Slicer.
- With charts. A slicer also drives a PivotChart — one click changes both the table and the chart.
Good dashboard rule: slicers and a timeline on top, 2–3 PivotTables and charts below, all connected to one cache.
Try it in the simulator
Recreate the two-region slicer selection with a formula: type =СУММЕСЛИМН($C$2:$C$8;$B$2:$B$8;D2;$A$2:$A$8;"Tashkent")+СУММЕСЛИМН($C$2:$C$8;$B$2:$B$8;D2;$A$2:$A$8;"Samarkand") in E2 and fill it down to E4. Laptop — 34000000, Monitor — 21600000.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Region | Product | Amount | Product | Tashkent + Samarkand | |||||||||||||||||||
| 2 | Tashkent | Laptop | 25500000 | Laptop | ||||||||||||||||||||
| 3 | Samarkand | Monitor | 12000000 | Monitor | ||||||||||||||||||||
| 4 | Tashkent | Printer | 6400000 | Printer | ||||||||||||||||||||
| 5 | Bukhara | Laptop | 17000000 | |||||||||||||||||||||
| 6 | Samarkand | Laptop | 8500000 | |||||||||||||||||||||
| 7 | Tashkent | Monitor | 9600000 | |||||||||||||||||||||
| 8 | Bukhara | Printer | 9600000 | |||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 | ||||||||||||||||||||||||
| 12 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.