Excel automation

Dependent Drop-Down Lists in Excel: The Classic Method, the Modern One and the Check Almost Nobody Adds

Cover "Dependent drop-down lists in Excel: the classic method and the modern one" with a card of three chained lists: department Antioquia, municipality Envigado, school I. E. Ejemplo 03 and the check "Valid combination".

An Excel form that collects data on students, customers or inventory has a constant enemy: what each person types in their own way. "Medellín", "medellin", "Medellin." and "MED" are the same municipality to a person and four different values to Excel (see when Excel stops being the solution). The simplest defense is drop-down lists, and the most useful are the dependent ones: when you choose a department, the next list offers only its municipalities.

This article explains two methods to chain lists: the classic one (defined names and INDIRECT, which works in any version) and the modern one (UNIQUE, FILTER and spill references, for Excel 2021 and Microsoft 365). It includes a downloadable template (in Spanish) with both methods, tested in Microsoft Excel 16 (es-CO), and the check almost nobody adds. Verified on October 9, 2026.

Summary. A dependent list is built from a single source table and chained with a formula. The modern method updates itself when you add rows and does not break with spaces in names; the classic one works in any version. Both have a weakness: if you change the first list, the value in the second stays, and an impossible combination can remain. The fix is a check cell that confirms the combination exists. All of this was tested with fictional data on departments, municipalities and schools.

The source: a single table

Before any formula, an orderly table in the "Listas" sheet with one row per combination:

DepartmentMunicipalitySchool (fictional)
AntioquiaMedellínI. E. Ejemplo 01
AntioquiaEnvigadoI. E. Ejemplo 03
AtlánticoBarranquillaI. E. Ejemplo 07
………

The template has 24 rows: 4 departments, 3 municipalities each and 2 schools per municipality. The golden rule: everything comes from this sheet; if a municipality must be added, it is added here and nowhere else.

Modern method: UNIQUE, FILTER and the spill

Five steps of the modern method: a single source, first list with SORT and UNIQUE, dependent list with FILTER, validation pointing to the spill and a check cell.
Five steps with UNIQUE, FILTER and the spill.

In a helper area (columns H to J of the form sheet) the three lists are computed:

' In English                                                   (cell)
=SORT(UNIQUE(Listas!A2:A25))                                   ' H3: departments
=SORT(UNIQUE(FILTER(Listas!B2:B25, Listas!A2:A25=B4, "")))     ' I3: municipalities of the chosen department
=FILTER(Listas!C2:C25, (Listas!A2:A25=B4)*(Listas!B2:B25=B5), "")  ' J3: schools of the municipality

' In Spanish
=ORDENAR(UNICOS(Listas!A2:A25))
=ORDENAR(UNICOS(FILTRAR(Listas!B2:B25; Listas!A2:A25=B4; "")))
=FILTRAR(Listas!C2:C25; (Listas!A2:A25=B4)*(Listas!B2:B25=B5); "")

Then, under Data, Data Validation, choose List and use the spill reference as the source, with the # sign: =$H$3# for the department (B4), =$I$3# for the municipality (B5) and =$J$3# for the school (B6). The # means "the whole range that formula spills", so the list grows or shrinks by itself. I checked that when choosing Antioquia, the second list offers Envigado, Itagüí and Medellín; and when switching to Atlántico, Barranquilla, Malambo and Soledad.

Advantages: no defined names or ranges to adjust, the lists come out sorted and without duplicates, and adding data in "Listas" updates everything (if the formulas' range covers it; using an Excel table as the source makes it automatic).

Classic method: defined names and INDIRECT

It works in any version of Excel. The idea: each department has its own column of municipalities, and each column is given a defined name equal to the department's name (under Formulas, Name Manager). Then the municipality validation uses:

' Validation of the department list (B3): the header range
=Clasico_listas!$A$3:$D$3

' Validation of the municipality list (B4): INDIRECT turns the text in B3 into the name
=INDIRECT($B$3)           ' English
=INDIRECTO($B$3)          ' Spanish

If B3 says "Antioquia", INDIRECT returns the range with that name, and the list shows its municipalities. It is the long-standing method, but it has quirks I tested:

  • Defined names do not allow spaces: a "Norte de Santander" requires a name like "Norte_de_Santander" and a formula INDIRECT(SUBSTITUTE(B3," ","_")).
  • Each time you add a department, you must create its name and extend the header list.
  • If the department is empty, INDIRECT errors and the municipality list will not open.

The check almost nobody adds

With either method there is a problem: if you choose Antioquia and Envigado, and then change the department to Atlántico, Excel leaves "Envigado" in the municipality cell. Validation only controls what is typed, not what was already there. I tested exactly that case: the result is an impossible combination nobody notices. The fix is a check cell:

=IF(COUNTIFS(Listas!A2:A25, B4, Listas!B2:B25, B5, Listas!C2:C25, B6)=1,
    "Combinación válida", "Revisar: la combinación no existe")

=SI(CONTAR.SI.CONJUNTO(Listas!A2:A25; B4; Listas!B2:B25; B5; Listas!C2:C25; B6)=1;
    "Combinación válida"; "Revisar: la combinación no existe")

In the test, with Antioquia, Envigado and "I. E. Ejemplo 03" the check says "Combinación válida" (valid combination); when changing the department to Atlántico and leaving the rest, it says "Revisar: la combinación no existe" (and conditional formatting turns it red). For the classic method, the equivalent check uses COUNTIF(INDIRECT(B3), B4). If the form feeds a database or a report, make submission conditional on the check being valid.

Classic or modern: which to choose

Table comparing the classic INDIRECT method and the modern spill method: Excel version, setup, what happens when data is added and names with spaces.
Two ways to chain lists.
SituationChoose
The workbook will be used by people with old versions of ExcelClassic
The lists change often (municipalities or schools are added)Modern
There are names with spaces or accentsModern (or classic with SUBSTITUTE)
The form is in Excel for the Web or Microsoft 365Modern

Common mistakes and how to avoid them

  1. Leaving validation in "Warning" or "Information" mode: it lets anything be typed. In Error Alert, the style must be Stop.
  2. Copying and pasting over cells with validation: pasting replaces the rule. Protect the sheet or paste values only.
  3. Typing the lists by hand in each form: use a single source.
  4. Forgetting the check and trusting that validation covers everything.
  5. Using #N/A or errors in the helper list: if FILTER finds nothing, the third argument "" avoids the error (see the #N/A, #SPILL!, #CALC! and #VALUE! errors).

Use cases in a school or a small business

  • Enrollment: grade and group; or department, municipality and school.
  • Attendance: area, teacher and group, so nobody types a different name.
  • Inventory: category and subcategory.
  • Orders: customer and branch.

When volume grows and several people edit at once, that is the sign to move to a database (see the seven signs) or to a specific tool.

Colombia, Latin America and the world

Worldwide, data validation is among the cheapest and most effective data-quality practices. In Colombia and Latin America the challenge is twofold: list separators and functions in Spanish (; instead of ,, FILTRAR instead of FILTER), which make formulas from English tutorials fail when copied, and name normalization (accents, "Bogotá D. C.", "Norte de Santander"), which the drop-down list solves at the root. For teachers and education secretariats building attendance lists, small businesses with orders by branch and those who teach Excel, this technique is among the most rewarding: a well-made list avoids hours of cleaning later (see importing CSV correctly).

Templates to work in an orderly way

If you want an attendance list with controls already built, or invoicing templates with automatic numbering, these options are ready to use, with optional support. And there is a free Excel with AI guide for asking for help with your formulas, always verifying the result.

Keep reading: forecasting in Excel, the hidden risk of Excel and how to automate in Excel.

Frequently asked questions

How do I create a dependent drop-down list in Excel?

With a source table, a helper list that depends on the previous choice (with FILTER or with defined names and INDIRECT) and a List-type data validation pointing to that list.

What does the # sign mean in data validation?

It is the spill operator: it refers to the whole range occupied by the result of a dynamic array formula, so the list adjusts by itself.

Does it work in old versions of Excel?

The classic method does. UNIQUE, FILTER and SORT require Excel 2021 or Microsoft 365.

Why does the second list keep the old value when I change the first?

Because validation only controls what is typed, not values already present. Add a check cell that confirms the combination exists.

What do I do with names with spaces in the classic method?

Defined names do not allow spaces: use an underscore in the name and SUBSTITUTE in the INDIRECT formula.

Try it now. Download the dependent lists template (in Spanish), replace the data in the "Listas" sheet with yours and keep the check cell. It includes both methods and a problems-and-solutions sheet. The modern method requires Excel 2021 or Microsoft 365.

Food for thought

A drop-down list keeps each person from typing the data in their own way, but it also decides which options exist. Who should control the lists in a form (whoever designs it, whoever uses it or whoever answers for the data)? And when a list does not include someone's reality (a new municipality, a different name), should the list change or should the person adjust?

Was this article helpful?

React and share it with someone who might find it useful.

Press and hold to choose another reaction

Be the first to react

Prefer to have it ready?

More guides in Excel automation for office work

Use ↑ ↓ to move, Enter to open and Esc to close.