Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Create a Dependent Dropdown in Excel

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To create a dependent dropdown in Excel, you need a source list of categories and a matching list of items for each category, then use the INDIRECT function in a data validation formula. Put the category list in one column and each category's items in separate named ranges, then set up two data validation cells: the first uses the category list, and the second uses =INDIRECT(cell_reference) where cell_reference points to the first dropdown. When you pick a category, the second dropdown updates to show only that category's items.

What You'll Need

  • Excel 2010 or later (the INDIRECT method works in all modern versions and Excel for Microsoft 365).
  • A worksheet with your category names and the items for each category.
  • Basic familiarity with named ranges (we'll walk you through it).

Step-by-Step

  1. Set up your source data. On a separate sheet (call it Lists), put your categories in one column, for example A2:A4 with values like Fruit, Vegetables, Drinks. Then put each category's items in its own column: B2:B4 for Fruit items (Apple, Banana, Cherry), C2:C4 for Vegetables (Carrot, Broccoli, Spinach), D2:D4 for Drinks (Water, Juice, Tea). Leave the headers out of the ranges you'll name.
  2. Create named ranges for each item list. Select the cells containing the items for the first category (e.g., B2:B4). In the Name Box (left of the formula bar), type a name that exactly matches the category name—so type Fruit and press Enter. Repeat for each category: select C2:C4 and name it Vegetables; select D2:D4 and name it Drinks. The names must match the category text exactly, including capitalization and spaces (use underscores if your category has spaces).
  3. Create the first dropdown (category). Go to the sheet where you want the dropdowns. Select the cell for the category dropdown (say E2). Go to Data > Data Validation. Under Allow, choose List. In Source, type =$A$2:$A$4 (or select the range on the Lists sheet). Click OK. Now E2 shows a dropdown of categories.
  4. Create the second dropdown (dependent items). Select the cell for the dependent dropdown (say F2). Open Data > Data Validation again. Under Allow, choose List. In Source, type =INDIRECT(E2). Click OK. Now when you pick Fruit in E2, F2 shows only Apple, Banana, Cherry.
  5. Test and copy down. Pick different categories in E2 and confirm F2 updates. To apply to more rows, copy E2:F2 down. The INDIRECT formula uses a relative reference, so it adjusts for each row (E3, E4, etc.).

Note: Menu labels can differ slightly by Excel version and platform. On Excel for the web, Data Validation is under the Data tab; on Mac Excel, it's under Data > Data Validation as well. The INDIRECT method works the same.

Common Mistakes

  • Named range doesn't match category text. If your category is "Soft Drinks" but your range is named Soft_Drinks, INDIRECT returns an error. Either rename the range to match exactly (using a name without spaces) or change the category text to match the range name.
  • Spaces in names. Excel named ranges cannot contain spaces. Use underscores (Soft_Drinks) and make sure the category cell also uses the underscore version.
  • Using absolute references incorrectly. In the dependent dropdown formula, =INDIRECT($E$2) would always look at E2 even when copied down. Use =INDIRECT(E2) without dollar signs so it adjusts per row.
  • Forgetting to name all lists. If a category has no matching named range, the dependent dropdown will be empty or show an error.
  • Data validation source with extra spaces. If your category list has trailing spaces, the name won't match. Trim your data.

Tips

  • Use a Table (Insert > Table) for your source data so ranges expand automatically when you add items. Then name the table columns instead of fixed ranges.
  • If you need more than two levels (e.g., Country > State > City), you can chain INDIRECT: the second dropdown uses INDIRECT(first_cell), and the third uses INDIRECT(second_cell). Each level's named range must match the value in the previous dropdown.
  • To make the dependent dropdown blank until a category is chosen, wrap the formula: =IF(E2="","",INDIRECT(E2)). This prevents errors when the first cell is empty.
  • Use Data > Data Validation > Circle Invalid Data to spot entries that don't match the list.
  • Keep your Lists sheet hidden or on a separate sheet to avoid clutter, but don't delete it—the named ranges depend on it.

Troubleshooting

If the dependent dropdown shows an error or is empty:

  • Check the named range exists. Go to Formulas > Name Manager and confirm the name matches the category exactly.
  • Check for typos in INDIRECT. The formula should be =INDIRECT(E2) with no quotes around E2. Using =INDIRECT("E2") would look for a named range called E2, which likely doesn't exist.
  • Verify the category cell contains a valid value. If E2 is blank or contains a value not in your named ranges, the dependent list will be empty.
  • Ensure data validation is applied to the correct cell. Select the cell and open Data > Data Validation to see the formula.
  • If you renamed a category, update the named range and the category list. Named ranges don't auto-update when you change cell text.
  • If copying the formula down doesn't work, check that the reference is relative (no $ signs) and that you copied the validation, not just the cell content.

Frequently Asked Questions

Can I create a dependent dropdown without named ranges?

Yes, you can use a formula like =OFFSET or =FILTER (in Microsoft 365) to return the list dynamically, but named ranges with INDIRECT is the most compatible method across Excel versions.

Why does my dependent dropdown show #N/A or blank?

Usually because the category value doesn't exactly match a named range, or the INDIRECT reference is wrong. Check spelling, spaces, and that the named range exists.

Can I have more than two dependent dropdowns?

Yes. Chain them: each subsequent dropdown uses INDIRECT on the previous dropdown's cell, and each level's named range must match the value selected in the previous level.

Does this work in Excel for the web and Excel for Mac?

Yes, the INDIRECT and named range method works in Excel for the web and Excel for Mac. Menu locations may differ slightly.

How do I make the dependent dropdown blank until a category is selected?

Use =IF(E2="","",INDIRECT(E2)) as the validation formula. This returns an empty list when E2 is blank.

What if my category names contain spaces?

Excel named ranges cannot contain spaces. Use underscores in both the named range and the category cell (e.g., Soft_Drinks). Alternatively, use a formula that substitutes spaces with underscores.