
Excel Dynamic Drop-Down Lists: Auto-Refresh and Dependent Drop-Downs with UNIQUE, SORT, and FILTER
Create Excel dynamic drop-down lists with dynamic arrays so lists refresh automatically when new data is added. Use UNIQUE, SORT, FILTER, and spill references (#) to build category-to-product dependent drop-downs in just 10 minutes.
Quick Fix: Complete It in 10 Minutes
- Convert the source data to a table with Ctrl+T (Sales).
- Lists!J2:
=SORT(UNIQUE(FILTER(Sales[Category], Sales[Category]<>""))) - For data validation in column E, set the Source to:
=Lists!$J$2# - Lists!L2:
=SORT(UNIQUE(FILTER(Sales[Item], Sales[Category]=$E2))) - For data validation in column F, set the Source to:
=Lists!L2#
How It Works
- Use UNIQUE to remove duplicates, FILTER to extract matching values, and SORT to sort them.
- Link a spill reference (#) to the data validation Source so the list expands automatically.
Real-World Examples
Row-by-Row Dependent Drop-Down Lists
=SORT(UNIQUE(FILTER(Sales[Item], Sales[Category]=$E2)))
Placeholder Before a Selection Is Made
=LET(sel,$E2, IF(sel="", {"(select)"}, SORT(UNIQUE(FILTER(Sales[Item], Sales[Category]=sel)))))
Dependent on Month as Well
=LET(selCat,$E2, selMonth,$G2,
dMonth, TEXT(Sales[Date],"yyyy-mm")=TEXT(selMonth,"yyyy-mm"),
SORT(UNIQUE(FILTER(Sales[Item], (Sales[Category]=selCat)*dMonth ))))
When Spill References Are Blocked (Alternative)
Use Define Name to create CategoryList for J2#, then use =CategoryList as the data validation Source.
In legacy environments, temporarily use an OFFSET/COUNTA dynamic range.
Checklist
- Convert the source data to a table (Sales).
- Create lists with UNIQUE+FILTER+SORT.
- For the data validation Source, use
cell#or adefined name. - Use a row-by-row dependent spill structure (L2#, L3#, …).
- Enable error alerts.
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| #SPILL! | Spill range conflict | Clear space below and to the right. |
| List does not refresh | Fixed range | Convert the data to a table and reference J2#. |
| Same list in every row | Shared reference | Use row-specific spills such as L2# and L3#. |
| Spill references prohibited by policy | Organization security policy or version | Use a defined name as a workaround. |
Conclusion
Use dynamic drop-down lists to reduce input errors and simplify maintenance. The next post covers how to automatically highlight KPIs with conditional formatting.