How to Add a Slicer to a Table in Excel
In this article
Adding a slicer to a table in Excel gives you a set of on-screen buttons that filter your table data instantly. Instead of digging through filter drop-downs, you click a button (like a product name or a year) and the table narrows down to matching rows. This guide covers Excel for Microsoft 365 and Excel 2021/2019; the steps are nearly identical in Excel 2016.
What You'll Need
- A worksheet containing a proper Excel table (created via Insert > Table or Ctrl+T). Slicers cannot be added to a plain range.
- Excel for Windows or Mac (slicer support is available in both).
- At least one column with values you want to filter by (e.g., Category, Region, Date).
Step-by-Step
- Select any cell inside your table. Clicking a cell is enough; you don't need to highlight the whole table. This activates the Table Tools contextual tab in the ribbon.
- Go to the Table Design tab. On Windows, it appears as “Table Design” (or “Design” in older versions). On Mac, it’s also “Table Design.” This tab is only visible when a table cell is selected.
- Click “Insert Slicer.” In the Table Design tab, look for the “Tools” group. The button is labeled “Insert Slicer.” Click it to open a dialog box.
- Check the column(s) you want to filter by. The dialog lists all column headers from your table. Tick the box next to each column you want a slicer for. You can select multiple columns; each will become a separate slicer.
- Click OK. Excel inserts a floating slicer window for each selected column. The slicer shows a list of unique values from that column.
- Use the slicer to filter. Click a value in the slicer to filter the table to rows that match. To select multiple values, hold Ctrl (or Cmd on Mac) while clicking. To clear the filter, click the funnel icon with an X in the top-right corner of the slicer.
- Format and position the slicer (optional). Drag the slicer to a convenient spot on your sheet. Use the Slicer tab (appears when the slicer is selected) to change colors, buttons per column, and size.
Common Mistakes
- Forgetting to convert your data to a table. Slicers only work with Excel Tables and PivotTables. If you try to insert a slicer on a plain range, the button is greyed out. Solution: select any cell in your data, press Ctrl+T, and confirm.
- Selecting the wrong column. Ensure the column you choose actually contains the values you want to filter by. For example, if you want to filter by month, the column must contain month names or dates, not just numbers.
- Clicking outside the table before inserting. If you click a cell outside the table, the Table Design tab disappears. Always keep at least one cell selected inside the table.
- Not realizing slicers are independent. Multiple slicers on the same table act as AND filters. If you select “East” in a Region slicer and “2023” in a Year slicer, you get rows that are both East AND 2023. This is usually what you want, but it can confuse if you expect OR logic.
Tips
- Use multi-select. By default, clicking a value filters to just that value. Hold Ctrl (Cmd on Mac) to select multiple values. To select all values again, click the multi-select icon (a small checkbox with a line) in the slicer header.
- Sort slicer buttons. Right-click a slicer, choose “Slicer Settings,” and set a custom sort order (e.g., by month order rather than alphabetical). This is handy for date columns.
- Connect a slicer to multiple tables. If you have several tables that share a common field (like Product ID), you can right-click the slicer, choose “Report Connections,” and check other tables. This filters all connected tables simultaneously.
- Style your slicer. Use the Slicer tab to apply a style that matches your dashboard. You can also adjust the number of columns to make the slicer more compact.
- Keep slicers visible. If you scroll down a long sheet, the slicer may scroll out of view. Consider placing slicers in a frozen area or on a separate dashboard sheet.
Troubleshooting
- “Insert Slicer” is greyed out. This happens when your selection is not a table or PivotTable. Convert your range to a table (Ctrl+T) or ensure you have a PivotTable selected.
- Slicer doesn’t filter anything. Check that the slicer is connected to the table. Right-click the slicer, choose “Report Connections,” and verify the table is checked. Also confirm the slicer’s column actually exists in the table.
- Slicer is too large or too small. Drag the edges to resize, or use the Slicer tab’s “Height” and “Width” boxes. You can also set the number of columns to make it wider but shorter.
- Values missing from slicer. Slicers only show unique values that appear in the column. If you have blank cells, they appear as “(Blanks)” – you can hide them by filtering the table or using a formula to fill blanks.
- Slicer disappeared after saving. Slicers are part of the worksheet, so they should save. If you don’t see it, check that you’re on the correct sheet. If it’s hidden, go to Home > Find & Select > Selection Pane to see if the slicer is hidden.
Frequently Asked Questions
Can I add a slicer to a regular range (not a table)?
No, slicers require an Excel Table or a PivotTable. Convert your range to a table first (Ctrl+T).
How do I remove a slicer?
Right-click the slicer and choose “Remove” (or press Delete after selecting it). This does not delete your data.
Can I use a slicer to filter multiple tables at once?
Yes, if the tables share a common field. Right-click the slicer, choose “Report Connections,” and check the other tables.
Why does my slicer show “(Blanks)”?
That represents rows where the column is empty. To hide it, filter out blanks in the column or fill them with a value.
Does a slicer work with Excel Online?
Excel for the web supports viewing and using slicers, but inserting them is limited. For full functionality, use the desktop app.
Can I sort slicer buttons alphabetically?
By default, slicers sort alphabetically. To change to a custom order (e.g., months), right-click the slicer, go to Slicer Settings, and choose a custom sort.