Sub topic 6
Add your first slicer
A slicer is a filter control that sits on the sheet as a floating box. Viewers click values in it to narrow down the data. This chapter covers adding one slicer, what its two settings mean, and what it changes on the sheet. Later chapters cover filtering by condition in more detail, choosing which charts a slicer controls, and slicing by date.
This chapter assumes you have finished the earlier chapters, or can do the following:
- You have a flat source table on a tab named
Data, with a header row in row 1. - You have at least one pivot table and one chart that read from it.
- You can select ranges, switch tabs, and open the Google Sheets menus.
What a slicer is tied to
A slicer holds two settings. Everything else about it follows from these.
- Data range: the block of cells it filters, including the header row. For example,
Data!A1:F. - Column: the one column in that range whose values the slicer lists. For example,
Region.
When a viewer picks values, the slicer hides rows in the data range whose cell in that column does not match. The charts and pivot tables that read from that range then recalculate from the remaining rows.
A slicer does not filter the whole spreadsheet. It filters one data range, and it reaches only the objects connected to it. A slicer on the Region column of Data!A1:F has no effect on a chart built from a different range.
The example table used in this tutorial looks like this:
Sheet name: Data
A1:F1 headers: Order ID | Order Date | Region | Category | Units | Revenue
A2: 1001 | 2026-01-05 | West | Hardware | 3 | 450.00
A3: 1002 | 2026-01-09 | East | Software | 1 | 120.00
A4: 1003 | 2026-02-02 | East | Hardware | 2 | 300.00How a click flows through the sheet
The diagram shows what happens when a viewer picks a value in a slicer.
The last two branches matter later. SUBTOTAL ignores rows hidden by a filter. A plain SUM over the same cells adds every row, whether or not the slicer hides it. The KPI chapter builds on this.
Add the slicer
Follow these steps on the Data tab, or on any tab that can see the data.
- Click any cell inside the source table, for example
C2. Google Sheets uses the current selection to guess the data range. - Open Data and choose Add a slicer.
- A slicer box appears on the sheet, and a Slicer side panel opens on the right.
- In the panel, open the Data tab. Check the Data range field. If it shows a tight range such as
Data!A1:F4, replace it withData!A1:Fso new rows are included. - Under Column, choose
Regionfrom the list. - Close the panel, or click elsewhere on the sheet.
The slicer now shows the title Region and a filter button. It does not filter anything yet. A new slicer starts with every value selected.
Choose the data range with care
The range you give the slicer has two failure modes.
| Range choice | Example | Result |
|---|---|---|
| Closed range | `Data!A1:F4` | New rows added below row 4 are not filtered. |
| Open-ended range | `Data!A1:F` | New rows are included automatically. |
| Range without the header row | `Data!A2:F` | The first data row is treated as the header, and the column list shows record values instead of names. |
| Range with a blank row inside | A blank row 50 in the middle | The range can stop at the blank row if it was guessed from the selection. Remove the blank rows, or set the range by hand. |
Match the range to the source of your pivot tables and charts. If a pivot table reads Data!A1:F1000 and the slicer reads Data!A1:F, they may not be treated as the same source. You can edit a slicer's range at any time, but it is easier to pick one range up front and use it everywhere.
Use the slicer
Click the filter button on the slicer, shown as a funnel or a dropdown arrow. Two options appear, Filter by values and Filter by condition. This chapter uses the first. The next chapter covers the second.
Under Filter by values, you see a checkbox list of every distinct value in the column, such as East and West.
- Click Clear to uncheck everything.
- Check
West. - Click OK.
The slicer title now shows the selection. Rows where Region is not West are hidden in the data range. Any pivot table or chart connected to the slicer shows only West.
To reset, open the filter again, click Select all, and click OK.
What the slicer is actually doing
It helps to see the effect on the Data tab itself. When the slicer is active, rows 3 and 4 in the example table (the East orders) are hidden from the sheet's row numbers, as with a normal filter. Unlike a filter on the sheet, the slicer is a separate object, so it keeps working when you are on a different tab. That makes it useful for a dashboard.
You can also see the hidden rows by looking at the row numbers on the left of the Data tab. A gap in the numbers, such as 2 followed by 5, means the rows between are hidden.
Move the slicer to the dashboard
A slicer is most useful on the dashboard tab, next to the charts, not on the data tab.
- Click the slicer once to select it.
- Cut it with Ctrl+X (Cmd+X on Mac).
- Switch to the
Dashboardtab and click a cell where the slicer should start. - Paste with Ctrl+V (Cmd+V).
Check the Data range in the panel after pasting. It should still read Data!A1:F. If it shows a range on the wrong tab, correct it. You can also drag the slicer by its top edge to reposition it, and drag its corners to resize.
Place the slicer above or beside the charts it controls, so a viewer sees the control and the result together. Slicers float above cells. A slicer placed over a chart or a KPI cell hides it, so leave space.
What the slicer does not control
Beginners often expect a slicer to change everything on the sheet. It does not.
- It does not change the cells of a normal formula such as
=SUM(Data!F2:F1000). - It does not change a chart that reads from a different range than the slicer's.
- It does not change a chart built on a pivot table that is not connected to the slicer.
- It does not change content on another spreadsheet file.
Here are two cells that read the same revenue column but react differently. Put them on the dashboard and try the slicer on them.
Total revenue, ignores the slicer:
=SUM(Data!F2:F1000)
Total revenue, follows the slicer:
=SUBTOTAL(109, Data!F2:F1000)With all regions selected, both show the same number. Select only West in the slicer. The first cell stays the same. The second drops to the West total, because function code 109 means "sum, ignoring rows hidden by a filter." You can use this difference to test whether your slicer is working.
Name and style the slicer
A slicer title defaults to the column name. Change it when the column name is unclear to a viewer.
- Click the slicer, then click the three-dot menu in its corner and choose Edit slicer.
- Open the Customize tab in the side panel.
- Type a title, such as
Sales region. - Pick a title font, a text size, and background and text colors if you wish.
Formatting is covered in a later chapter. For now, a short clear title is enough.
Common first-slicer problems
| Symptom | Likely cause | Fix |
|---|---|---|
| **Add a slicer** is greyed out or the box appears empty | No cell in the data was selected | Click a cell inside the table, then try again. |
| The column list shows values like `1001` and `450.00` | The data range starts below the header row | Set the range to start at row 1. |
| The slicer lists only some values | The data range is closed and stops early | Use an open-ended range such as `Data!A1:F`. |
| Picking a value changes nothing on the dashboard | The charts or pivot tables are not connected to this slicer or range | Check the data range, then see the next chapters on slicer scope. |
| A KPI number does not change | The cell uses `SUM`, not `SUBTOTAL` | Use `SUBTOTAL(109, ...)`. |
| Blank appears as a choice in the list | Some rows have an empty value in that column | Fill the blank cells, or leave `(Blanks)` unchecked. |
Check your work
Run these checks before moving on.
- On the
Datatab, confirm the slicer's data range includes row 1 and is open-ended. - Select
Westonly. Confirm that the East rows are hidden on theDatatab. - Confirm that at least one pivot table or chart on the
Dashboardtab now shows only West. - Put the
SUMandSUBTOTALcells from the earlier example on the dashboard. Confirm that only theSUBTOTALcell changes. - Click Select all and confirm every region returns.
If step 3 fails, do not change the slicer yet. The chart or pivot table may not be connected to it. The scope chapter explains how to connect them.
Exercise
You add a slicer with data range Data!A1:F4 and column Region. A week later, new orders have been appended in rows 5 to 40, but the slicer does not filter them. What is wrong, and how do you fix it?
Show answer
The data range is closed at row 4, so rows 5 to 40 are outside the slicer's range. Edit the slicer and change the data range to an open-ended range such as Data!A1:F (or at least Data!A1:F40). New rows are then included.
Exercise
A dashboard has two cells: =SUM(Data!F2:F1000) and =SUBTOTAL(109, Data!F2:F1000). A viewer selects only West in a slicer on Region for Data!A1:F. Which cell changes, and why?
Show answer
Only the SUBTOTAL cell changes. The slicer hides the non-West rows in the data range, and function code 109 skips hidden rows. SUM adds every row in the range whether or not it is hidden.
Exercise
You want viewers to filter by both Region and Category on the same dashboard. How many slicers do you add, and what must be the same about them?
Show answer
Add two slicers, one with column Region and one with column Category. They should use the same data range, such as Data!A1:F, so they filter the same rows and combine: only rows that match both selections stay visible.