Pivot Table Issues

How to Filter a Long Excel Slicer with Another Slicer

Aamir Naveed AkramAamir Naveed Akram Nov 4, 2026 870 views

Question details

The user wants to make a lengthy Excel slicer easier to navigate by using a secondary slicer to filter its contents or changing its display layout.

How to Filter a Long Excel Slicer with Another Slicer
Product
Microsoft Excel
Device & OS
not provided
Scenario
Filtering large datasets in a PivotTable where the default slicer generates a single, excessively long column of items, requiring tedious vertical scrolling.
Observed behavior
The generated slicer contains too many items in a single column making it difficult to find specific filter criteria efficiently.
Before you start

Ensure your PivotTable is correctly set up and verify that the broader category field you intend to use as a primary filter exists in your source dataset.

Solution 1Recommended

Filter the Long Slicer Using a Category Slicer

Create a broader category slicer (like regions or alphabet letters) to narrow down the choices in your main, lengthy slicer automatically.

This method involves establishing a hierarchy. When you click an item in the parent category slicer, Excel automatically grays out or hides irrelevant items in the child slicer, making it much easier to find the exact item you need.

1
Insert the primary category slicer

Click anywhere inside your PivotTable. Navigate to the 'PivotTable Analyze' tab on the ribbon, click 'Insert Slicer', and check the box for your broader category field (e.g., 'Region' or 'First Letter'). Click OK.

2
Insert the secondary detailed slicer

Repeat the previous step, but this time check the box for the field containing the long list of items. Click OK.

3
Hide items with no data

Right-click the secondary (long) slicer and select 'Slicer Settings'. Check the box that says 'Hide items with no data' and click OK. Now, when you select a category in the first slicer, the second slicer will shrink to show only relevant items.

Filter the Long Slicer Using a Category Slicer
Slicer Dependency: By hiding items with no data, the second slicer acts dynamically, saving you from scrolling past dozens of unavailable options.
Data Analysis Made Easy

Manage PivotTables and Slicers Seamlessly in WPS Office

WPS Spreadsheet provides robust, easy-to-use data analysis tools. You can quickly insert, format, and connect multiple slicers to your PivotTables to filter massive datasets without lag.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your data.
  2. 2. Insert PivotTable Slicers: Select your PivotTable, go to the 'Options' or 'Analyze' tab, and click 'Insert Slicer' to choose your data fields.
  3. 3. Customize and connect: Use the Slicer settings in the ribbon to increase columns, or right-click to connect your new slicers to multiple PivotTables instantly.
Fully compatible with Microsoft Excel (.xlsx) formats and PivotTable structuresEasily link multiple slicers to organize complex data intuitivelyFormat slicer columns and styles to build interactive dashboardsFree and lightweight alternative with a familiar ribbon interface
QA img-9

Frequently Asked Questions

How do I hide irrelevant items in my second slicer?

Right-click the second slicer, select 'Slicer Settings', and check 'Hide items with no data'. This ensures that when you filter using the first slicer, the second slicer removes the grayed-out buttons entirely.

Can I connect my new slicers to multiple PivotTables?

Yes. Right-click the slicer, choose 'Report Connections' (or 'PivotTable Connections'), and check the boxes next to all the PivotTables you want that specific slicer to control. Ensure all PivotTables share the same data source.

Why are some slicer buttons grayed out?

Buttons turn gray when they have been filtered out by another connected slicer, or when there is no underlying data for that item in the current PivotTable context.

Can I add a scroll bar to the worksheet instead of changing the slicer?

While it is possible to add Form Controls like a scroll bar via the Developer tab, it requires assigning macros or complex formulas to function as a data filter. Changing the slicer layout or using a category slicer is much faster and requires no coding.