Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Use a Slicer to Filter Table Data

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To use a slicer to filter data in a table, first format your data as an Excel Table (or a PivotTable), then insert a slicer from the Table Design or PivotTable Analyze tab. Click the slicer buttons to filter the table instantly. The steps below cover Excel for Microsoft 365 and Excel 2019/2021 on Windows and Mac; the exact button labels can differ slightly by version and platform.

What You'll Need

  • Excel for Microsoft 365, Excel 2019, or Excel 2021 (Windows or Mac). Slicers are not available in Excel for the web or Excel for iPad/iPhone.
  • Your data organized with a single header row and no blank rows or columns inside the range.
  • Data formatted as an Excel Table (recommended) or as a PivotTable. Slicers cannot be added to a plain range.

Step-by-Step

  1. Format your data as a Table. Select any cell in your data range. On the Home tab, click Format as Table and choose a style. In the dialog, confirm the range and that My table has headers is checked, then click OK. If you prefer a keyboard shortcut, press Ctrl+T (Windows) or Command+T (Mac).
  2. Insert the slicer. Click any cell inside the table. On the Table Design tab (called Design on some versions), click Insert Slicer. A dialog lists every column header. Check the box for the field you want to filter by (for example, Region or Category), then click OK. For a PivotTable, go to PivotTable Analyze > Insert Slicer instead.
  3. Position the slicer. Drag it by its border to a clear area beside your table. Resize it by dragging a corner handle. You can add more slicers for other columns by repeating step 2.
  4. Filter with the slicer. Click a button in the slicer to show only rows matching that value. Click additional buttons to select multiple values (the slicer supports multi-select by default). To clear the filter, click the funnel icon with a red X at the top-right of the slicer, or press Alt+C (Windows) to clear the slicer.
  5. Verify the filter. The table rows will hide and the status bar may show a filtered count. The slicer button you selected appears highlighted. To remove the filter entirely, click the clear filter icon on the slicer.
  6. Adjust slicer settings if needed. Right-click the slicer and choose Slicer Settings to rename the header, change the caption, or hide items with no data. On the Slicer tab (or Options tab), you can change the button layout and size.

Common Mistakes

  • Adding a slicer to a plain range. Slicers require a Table or PivotTable. If the Insert Slicer button is greyed out, format your data as a Table first.
  • Selecting the wrong field. The slicer filters only the column you chose. If you need to filter by two columns, insert two slicers.
  • Expecting the slicer to filter other tables. A slicer is connected only to the table or PivotTable it was created from. To filter multiple PivotTables with one slicer, you must connect them (PivotTable Analyze > Filter Connections).
  • Leaving blank rows or columns in the source data. This can cause the table to include empty rows or miss data. Remove blanks before formatting as a Table.
  • Using a slicer on a protected sheet. Slicers may not work if the sheet is protected. Unprotect the sheet (Review > Unprotect Sheet) or allow filtering in the protection settings.

Tips

  • Name your table (Table Design > Table Name) so you can reference it easily in formulas.
  • Use the slicer's multi-select to compare several categories at once. Hold Ctrl while clicking to add or remove selections.
  • Arrange slicers in a column beside your table for a dashboard-like view. You can also cut and paste slicers onto another sheet.
  • To filter by date ranges, insert a Timeline instead of a slicer (Insert > Timeline). Timelines work with date fields in PivotTables.
  • If your slicer shows too many buttons, use Slicer Settings to hide items with no data, or apply a filter to the source table first.

Troubleshooting

  • Insert Slicer is greyed out. Confirm your data is an Excel Table (not just a range) and that you are not in a protected sheet or a shared workbook that restricts the feature.
  • Slicer does not filter the table. Check that the slicer is connected to the correct table. Right-click the slicer and choose Report Connections (for PivotTables) or Slicer Connections to verify.
  • Slicer buttons are empty or show wrong items. Refresh the data (Data > Refresh All) or check the source range for blanks and errors.
  • Slicer disappears when you close the workbook. Slicers are saved with the workbook, but if the sheet is hidden or the slicer is placed on a hidden sheet, it won't be visible. Unhide the sheet.
  • Cannot clear the filter. Click the clear filter icon on the slicer (funnel with red X). If that fails, right-click the slicer and choose Clear Filter.

Frequently Asked Questions

Can I use a slicer to filter multiple tables at once?

Only PivotTables that share the same data source can be connected to one slicer. For regular Excel Tables, each slicer filters only its own table. To filter multiple tables, you would need to connect them via Power Pivot or use a PivotTable-based approach.

Why is my slicer not showing all items?

The slicer may be set to hide items with no data. Right-click the slicer, choose Slicer Settings, and uncheck Hide items with no data. Also check that the source data has no blank cells in that column.

Can I resize or move a slicer?

Yes. Click the slicer to select it, then drag its border to move it or drag a corner handle to resize. You can also use the Slicer tab to set a specific size.

Does a slicer work on Excel for Mac?

Yes, Excel for Mac (2016 and later) supports slicers for Tables and PivotTables. The menu path is similar: Table Design > Insert Slicer.

What is the difference between a slicer and a timeline?

A slicer filters by any category field (text, numbers, dates). A timeline is specifically for date fields and lets you filter by days, months, quarters, or years using a slider.

Can I print a table with a slicer applied?

Yes. The printed output will show only the filtered rows. The slicer itself will also print if it is within the print area. To exclude the slicer, set the print area to just the table.