Excel Dynamic Drop-Down Lists: Auto-Refresh and Dependent Drop-Downs with UNIQUE, SORT, and FILTER

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

  1. Convert the source data to a table with Ctrl+T (Sales).
  2. Lists!J2: =SORT(UNIQUE(FILTER(Sales[Category], Sales[Category]<>"")))
  3. For data validation in column E, set the Source to: =Lists!$J$2#
  4. Lists!L2: =SORT(UNIQUE(FILTER(Sales[Item], Sales[Category]=$E2)))
  5. 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 a defined name.
  • Use a row-by-row dependent spill structure (L2#, L3#, …).
  • Enable error alerts.

Troubleshooting

IssueCauseSolution
#SPILL!Spill range conflictClear space below and to the right.
List does not refreshFixed rangeConvert the data to a table and reference J2#.
Same list in every rowShared referenceUse row-specific spills such as L2# and L3#.
Spill references prohibited by policyOrganization security policy or versionUse 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.

Leave a Reply

Your email address will not be published. Required fields are marked *