Dependent Drop-Down List in Excel: INDIRECT and FILTER Methods

Dependent drop-down list in Excel cover graphic
Image: Spreadsheet Tutorials & Productivity (original graphic)

A dependent drop-down list (also called a cascading drop-down) is a second list whose options change based on what you picked in the first list. Pick Monitors in column A, and column B only offers monitor models. Pick Laptops, and column B switches to laptop models. This tutorial shows how to build one with Data Validation, named ranges and INDIRECT, which works in every modern version of Excel, plus a FILTER-based option for Excel 365.

Quick answer: Put each category's items in its own column, name each column after its category (Formulas > Create from Selection), make the first drop-down a normal list of categories, then give the second drop-down the source =INDIRECT(SUBSTITUTE($A2," ","_")).

The sample data

The item lists live on a sheet called Lists. Each column header is a category, and the cells below it are that category's products:

ABC
1LaptopsMonitorsOffice Chairs
2ThinkPad X1Dell U2723QESteelcase Series 1
3MacBook AirLG 27UP850Herman Miller Sayl
4Dell XPS 13BenQ PD2705QBranch Ergonomic
5HP Envy 14IKEA Markus
6Autonomous ErgoChair

The form where people make their choices is on a sheet called Order: column A holds the Category drop-down and column B holds the dependent Product drop-down.

Excel order sheet with category and dependent product drop-downs, and a COUNTA INDIRECT check returning 5
The helper formula in C3 confirms that the Office Chairs list has 5 items. Image: Spreadsheet Tutorials & Productivity (original screenshot)

Method 1: Named ranges + INDIRECT (works in all versions)

Step 1: Create one named range per category

On the Lists sheet, select A1:C6 (headers included), then go to Formulas > Create from Selection, tick Top row only, and click OK. Excel creates three names: Laptops (A2:A5), Monitors (B2:B4) and Office_Chairs (C2:C6).

Notice the underscore. Range names cannot contain spaces, so Excel replaces the space in "Office Chairs" with an underscore. Keep that in mind; it matters in Step 3.

If your columns have different lengths, it is cleaner to create each name separately so it covers only the filled cells. Otherwise blank cells at the bottom of a shorter column show up as empty options in the drop-down.

Step 2: Create the first drop-down (Category)

Select Order!A2:A20, open Data > Data Validation, set Allow to List, and use this source:

=Lists!$A$1:$C$1

That points to the three header cells, so the first drop-down shows Laptops, Monitors and Office Chairs. You can also give that header range a name such as Categories and enter =Categories instead.

Step 3: Create the dependent drop-down (Product)

Select Order!B2:B20 with B2 as the active cell, open Data Validation again, choose List, and enter:

=INDIRECT(SUBSTITUTE($A2," ","_"))

If A2 is still empty, Excel warns that the source currently evaluates to an error. That is expected. Click Yes to keep the rule.

Now choose a category in A2 and open the drop-down in B2. You only see the products from that category.

How it works

INDIRECT takes text and treats it as a reference. When A3 contains "Office Chairs":

  1. SUBSTITUTE($A3," ","_") turns it into the text Office_Chairs.
  2. INDIRECT("Office_Chairs") converts that text into the named range Lists!C2:C6.
  3. Data Validation uses that range as the list of allowed values.

The $ before A locks the column but not the row. Because the rule is written relative to B2, row 3 reads A3, row 4 reads A4, and so on.

A handy way to test the setup is a helper formula that counts the items each row would see:

=COUNTA(INDIRECT(SUBSTITUTE(A3," ","_")))

In the sample workbook this returns 3 for Monitors, 5 for Office Chairs and 4 for Laptops, which matches the lists above. If the helper returns #REF!, the category text does not match any range name.

Method 2: FILTER + spill range (Excel 365 and Excel 2021)

If you have a version with dynamic arrays, you can keep the products in one tidy two-column table (Category, Product) instead of separate columns. Suppose it is an Excel table called Items. In a helper cell, say E2, enter:

=FILTER(Items[Product], Items[Category]=$A$2)

With "Monitors" in A2, this spills the three monitor models down from E2. Then set the Product drop-down's Data Validation source to the spill range:

=$E$2#

The # means "the whole spilled result," so the list grows or shrinks automatically. New products added to the table appear without editing any names.

The trade-off: one helper formula serves one input cell. For a form with a single category choice, FILTER is the neatest option. For a long table where every row has its own category, Method 1 is simpler because one validation rule covers every row.

Google Sheets

In Google Sheets, the "Dropdown (from a range)" rule expects a range rather than a formula, so the INDIRECT trick from Method 1 is not the usual approach there. The common workaround is the Method 2 pattern: a FILTER helper range for the chosen category, with the dependent drop-down pointing at that helper range.

Common mistakes

  • Spaces in category names. =INDIRECT($A2) fails for "Office Chairs" because no range has that name. In the test workbook, INDIRECT on the raw text returned an error, while the SUBSTITUTE version returned the correct 5 items.
  • Header text and range names do not match. A typo, an extra trailing space or a different spelling in the header breaks the link. Fix the header and recreate the name.
  • Absolute row reference. Writing $A$2 in Method 1 makes every row look at A2 only. Use $A2.
  • Old choices stay after the category changes. Data Validation only checks new entries. If someone picks a laptop and then switches the category to Monitors, the laptop name stays in column B. Use Data > Data Validation > Circle Invalid Data to find those cells.
  • Blank options at the bottom of the list. This happens when a named range includes empty cells. Resize the name in the Name Manager.

FAQ

Can I add a new category later?

Yes. Add a new column on the Lists sheet, create a name for it that matches the header (with underscores instead of spaces), and extend the category drop-down's source to include the new header cell.

Does INDIRECT slow down my workbook?

INDIRECT is a volatile function, so it recalculates often. Inside Data Validation on a typical form this is rarely noticeable, but avoid copying thousands of INDIRECT helper formulas into a large model.

Can I make a third level (for example Category > Brand > Model)?

Yes. Use the same pattern again: create named ranges for each brand and give the third column a validation source like =INDIRECT(SUBSTITUTE($B2," ","_")). Brand names must then also be valid range names.

Summary

For a dependent drop-down list, store each category's items under a header, name each list after its header, and point the second drop-down at =INDIRECT(SUBSTITUTE($A2," ","_")). On Excel 365 or 2021, a FILTER helper plus a # spill reference is a tidy alternative for single-choice forms. For more step-by-step guides, browse the Excel tutorials, and if a formula throws an error along the way, check the Errors & Fixes section.

Comments