How to Fix an Excel Dependent Drop-Down List Using FILTER and INDIRECT
Question details
The user is experiencing issues with an Excel dependent drop-down list that works for some categories but fails for others when utilizing FILTER results referenced via INDIRECT.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Setting up a dynamic dependent drop-down list using the FILTER and INDIRECT functions to display subcategories based on a main category selection.
- Observed behavior
- The dependent drop-down list fails intermittently for specific categories due to exact match requirements failing across named ranges, formula references, or category names.
Before troubleshooting, ensure that your Excel version supports Dynamic Arrays (like the FILTER function) and verify that your category list contains no hidden spaces or trailing characters.
Correct Formula References and Clean Named Ranges
Identify and fix incorrect cell references in your FILTER formula and ensure all named ranges exactly match your category names without invalid spaces.
Dependent drop-down lists rely on exact text matching. When combining the FILTER function with INDIRECT, any discrepancy between the category name in your primary list and the Named Range will break the formula. Checking for invisible spaces and pointing your references to the exact output cell is critical.
Select the cell containing your FILTER formula (e.g., AF2) and adjust the cell reference so it accurately points to the intended target cell or range (e.g., AI2) where the filtered data resides.
Navigate to Formulas > Name Manager in the ribbon. Locate the associated named range for your category, click Edit, and update the 'Refers to' field to match your newly corrected dynamic array reference.
Inspect your main category names for invalid characters, leading spaces, or trailing spaces. If needed, apply the TRIM function to your source data to remove invisible spaces, as INDIRECT requires an absolute match.
Select the cell with your dependent drop-down list, go to Data > Data Validation, and confirm that the INDIRECT formula exactly matches the selected category cell.

Create Dependent Drop-Down Lists Easily in WPS Spreadsheet
WPS Office provides powerful data validation and formula capabilities, fully compatible with Microsoft Excel. You can quickly set up error-free dependent drop-down lists using INDIRECT and the Name Manager without the hassle of complex array errors.
- 1. Prepare Data for Named Ranges: Highlight your main categories and their respective subcategories, then go to the Formulas tab and use the Create from Selection feature to generate named ranges automatically.
- 2. Set the Primary Drop-Down: Select your target cell for the primary drop-down, navigate to Data > Validation, choose List from the Allow menu, and select your main category range.
- 3. Configure the Dependent Drop-Down: Select the cell for your dependent drop-down, open Data > Validation, select List, and in the Source box type `=INDIRECT(Cell_Reference_Of_Primary_List)`.
- 4. Confirm and Test: Click OK to save the rule. Your dependent drop-down list is now fully functional and will update dynamically based on the primary category selection.

Frequently Asked Questions
Why does INDIRECT return a #REF! error in my dependent drop-down list?
This usually happens if the text referenced by the INDIRECT function contains spaces or special characters, which are not permitted in Excel Named Ranges. To fix this, you must replace spaces with underscores (e.g., 'Category_Name') in both your Named Range definitions and by wrapping your primary cell reference in the SUBSTITUTE function within the Data Validation source.
Can I use the FILTER function directly inside a Data Validation list?
No, Excel's Data Validation does not natively accept Dynamic Array formulas like FILTER directly inside the source box. You must output the FILTER result to a cell on your worksheet (creating a spill range) and then reference that spilled range (using the # operator, e.g., =$A$1#) in your Data Validation source.
How do I remove invisible spaces from my dropdown categories?
You can use the TRIM function on your raw data column to remove any leading, trailing, or double spaces. Once the data is cleaned, copy and paste it as values over the original data, then recreate your Named Ranges based on this cleaned list.




