Formula Errors

Fix #REF! Errors in Dependent Excel Drop-Down Lists

Chanuka GeekiyanageChanuka Geekiyanage Dec 2, 2026 869 views

Question details

Fix dependent Data Validation lists that return #REF! when INDIRECT refers to a dynamically expanding named range.

Fix #REF! Errors in Dependent Excel Drop-Down Lists
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user wants a dependent drop-down list to update its options based on a parent selection and an expanding source list.
Observed behavior
The dependent list returns #REF! when INDIRECT is combined with a volatile named range.
Before you start

Check that the parent and dependent values are arranged in matching rows and identify an empty area for a helper formula. The spill-range solution requires an Excel version that supports FILTER, UNIQUE, and dynamic arrays, such as Microsoft 365.

Solution 1Recommended

Use a Filtered Spill Range for the Dependent List

Use this approach in Microsoft 365 to replace a problematic INDIRECT and named-formula combination with a range of filtered choices.

This example assumes parent values are in A2:A100, corresponding dependent values are in B2:B100, the parent selection is in D2, and the dependent drop-down will be in E2. Adjust the references to match your worksheet.

1
Create the helper list

In an empty cell such as G2, enter =IFERROR(UNIQUE(FILTER($B$2:$B$100,($A$2:$A$100=$D$2)*($B$2:$B$100<>""))),""). Leave the cells below G2 empty so the results can spill.

2
Set the validation source

Select E2 and open Data > Data Validation. Under Settings, choose List and enter =$G$2# in the Source box, then select OK.

3
Test the selections

Choose a parent value in D2, then open the drop-down in E2 and verify that it shows the corresponding values. Clear E2 before changing D2 to avoid leaving an incompatible selection.

4
Extend the source if needed

If your data grows beyond row 100, edit the ranges in the G2 formula to include the new rows, or use suitable Excel table column references.

Use a Filtered Spill Range for the Dependent List
When no values match: The helper formula returns a blank when there are no matching dependent values. Check the parent selection and source data if the list is empty.
Free Microsoft Office alternative

Work With Spreadsheet Lists in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Microsoft Office formats, making it easier to move existing files. It does not fix Excel-specific Data Validation behavior.

Work with spreadsheet drop-down lists in WPS SpreadsheetsOpen and edit Microsoft Excel XLSX filesUse a familiar interface for everyday spreadsheet tasksMove existing Office documents to a lightweight suite
QA img-9

Frequently Asked Questions

Why does INDIRECT return #REF! in my dependent list?

INDIRECT returns #REF! when its text does not identify a valid reference. Check the text it receives and inspect the defined name under Formulas > Name Manager. A named formula may also fail to provide a usable Data Validation list source in this setup.

How do I use a spill range as a drop-down source?

Create the list with a formula such as FILTER in an empty cell. Then select the dependent cell, open Data > Data Validation, choose List, and enter a spill reference such as =$G$2# in Source.

Will Excel clear the dependent selection when I change the parent?

Not automatically in this setup. Clear the dependent cell before changing the parent selection so an old, incompatible value is not left in place.

Why is my filtered drop-down empty?

Check that the parent selection matches values in the filter range and that the corresponding dependent cells are not blank. Also check the helper cell for a spill error caused by content blocking the results.