How to Make Dependent Dropdown Lists in Excel
In this article
You can create dependent dropdown lists in Excel by defining named ranges for each sub-list and using the INDIRECT function in a second data validation rule. This lets you pick a category in one cell and see only the matching items in the next cell. The method works in Excel for Microsoft 365, Excel 2019, 2021, and Excel for Mac. It uses only built-in features—no macros or add-ins—so it is safe to share and easy to maintain.
What You'll Need
- Excel 2019 or later, or Microsoft 365 (Windows or Mac). The steps also work in Excel 2016, but the Data Validation dialog looks slightly different.
- A worksheet with your main list and sub-lists. You can put them on the same sheet or a separate sheet—just keep the layout consistent.
- Basic familiarity with selecting cells and typing formulas.
Step-by-Step
- Set up your lists. On a worksheet (for example, Sheet2), type each category name in a row or column, and put the items for that category directly below or beside it. For example, put “Fruit” in A1, then “Apple”, “Banana”, “Cherry” in A2:A4. Put “Vegetables” in B1, then “Carrot”, “Broccoli”, “Spinach” in B2:B4. Leave no blank cells inside each list.
- Create named ranges for each sub-list. Select the cells containing the items for the first category (not the header). Click the Name Box (left of the formula bar), type a one-word name that exactly matches the category header—e.g.,
Fruit—and press Enter. Repeat for each category: select its items, type the category name exactly as it appears in the header, and press Enter. Names must have no spaces; use underscores if needed (e.g.,Leafy_Greens). - Create the first dropdown (the category list). Select the cell where users will pick a category (say, D1). Go to the Data tab > Data Validation. In the Allow box, choose List. In Source, type
=Sheet2!$A$1:$B$1(adjust to your header range) or select the header cells directly. Click OK. Now D1 shows a dropdown of categories. - Create the second dropdown (the dependent list). Select the cell where the dependent choice should appear (say, E1). Open Data > Data Validation again. Allow: List. In Source, type
=INDIRECT(D1). Click OK. This formula tells Excel to look up the named range that matches whatever is in D1. - Test it. Pick “Fruit” in D1. E1 should now offer only Apple, Banana, and Cherry. Change D1 to “Vegetables”; E1 should update to Carrot, Broccoli, Spinach. If E1 still shows the old list, press F9 to recalculate, or check that the named ranges match the header text exactly.
- Copy the validation down (optional). If you need dependent dropdowns for many rows, select D1:E1, copy, then paste into the rows below. The INDIRECT formula uses a relative reference to D1, so it adjusts automatically for each row.
Note: Menu labels can differ slightly by Excel version, device, or region. On Mac, Data Validation is under the Data tab as well, but the dialog may call the source field “Source” or “List range.”
Common Mistakes
- Named range does not match the header exactly. INDIRECT is case-insensitive but spaces, hyphens, and punctuation must match. “Leafy Greens” as a header needs a named range called
Leafy_Greens, but INDIRECT(“Leafy Greens”) will fail. Use underscores in both places or avoid spaces in headers. - Including the header row in the named range. If you name A1:A4 instead of A2:A4, the dropdown will include the word “Fruit” as an option.
- Blank cells inside a list. A blank cell in the middle of a named range can cause the dropdown to show blanks or stop early. Keep lists contiguous.
- Using INDIRECT with a cell that contains a space. If D1 contains “Leafy Greens”, INDIRECT(D1) looks for a range named “Leafy Greens” and fails. Either rename the header to “Leafy_Greens” or use a helper cell with SUBSTITUTE to replace spaces with underscores.
- Forgetting to press Enter after typing a name in the Name Box. The name is not saved until you press Enter.
Tips
- Put your lists on a separate sheet and hide it to keep the workbook tidy. Named ranges still work when the sheet is hidden.
- Use Excel Tables (Insert > Table) for each list and name the table column instead of a fixed range. That way, adding new items automatically extends the dropdown.
- If you need three levels (e.g., Country > State > City), repeat the pattern: name each sub-list after its parent item, then use INDIRECT on the second dropdown’s cell for the third.
- To make the dependent dropdown blank when no category is chosen, wrap the formula:
=IF(D1="","",INDIRECT(D1)). This avoids a #REF! error. - Protect the sheet (Review > Protect Sheet) to prevent users from editing the lists, but leave the input cells unlocked.
Troubleshooting
If the second dropdown shows a #REF! error, the named range does not exist or the header text does not match. Check the Name Box: type the category name and press Enter; if Excel selects a range, the name exists. If it does not, recreate the named range.
If the dropdown is empty, the named range may point to blank cells, or the list may be on a hidden sheet that is not properly referenced. Unhide the sheet and verify the range.
If the dropdown does not update when you change the first cell, make sure calculation is set to Automatic (Formulas > Calculation Options > Automatic). Press F9 to force a recalc.
If you see “The Source currently evaluates to an error” when setting up validation, the INDIRECT formula is referencing a cell that is empty or contains text that does not match a named range. Test by typing a valid category name directly into the cell.
If you copied the validation to other rows and it breaks, check that the INDIRECT reference is relative (e.g., D1, not $D$1). Absolute references will always look at the first row.
Frequently Asked Questions
Can I make dependent dropdowns without named ranges?
Not with INDIRECT alone. You can use a helper column with FILTER (Microsoft 365) to spill the matching items, then point data validation to that spill range with #. That method is more complex and not available in older Excel versions.
Why does INDIRECT return #REF!?
INDIRECT expects a text string that matches a defined name or a cell reference. If the text contains spaces or does not exactly match a named range, it returns #REF!. Rename the range or use SUBSTITUTE to replace spaces with underscores.
Do dependent dropdowns work on Excel for Mac?
Yes. The Data Validation dialog and Name Box work the same way. Menu labels may differ slightly (e.g., “Data Validation” under the Data tab).
Can I have three or more dependent levels?
Yes. Name each sub-list after its parent item, then use INDIRECT on the cell that holds the parent selection for each level. For example, if B1 holds the state, the city dropdown uses =INDIRECT(B1).
How do I stop the dependent dropdown from showing an error before a category is chosen?
Use =IF(D1="","",INDIRECT(D1)) as the source. This returns an empty string when D1 is blank, so the dropdown stays empty without an error.
Will dependent dropdowns work if I move the lists to another sheet?
Yes, as long as the named ranges still point to the correct cells. Named ranges are workbook-level, so they follow the data. Just update the named range if you move the cells.