Learning to build dependent drop-down lists in Excel is easier than it looks, and the result saves plenty of typing mistakes. The idea works like a restaurant menu: pick the drinks section, and only drinks appear. All it takes is a few named ranges, Data Validation and one short formula.
Key Takeaways
- Type each category as a column header, with its related items listed directly underneath.
- Name the header row Category, then name each item list after its own header.
- Create the first drop-down with Data Validation, using =Category as the source.
- Create the second drop-down with =INDIRECT(SUBSTITUTE($A2,CHAR(32),CHAR(95))) as the source.
How to Build Dependent Drop-Down Lists in Excel Step by Step
These steps are for Excel for Windows and Mac. The example is a simple order sheet where column A holds a category and column B shows only the items that belong to it.
Set Up the Source Lists
- Step 1: Open the workbook, add two worksheets or rename existing blank ones, and call them Orders and Lists.
- Step 2: On the Lists sheet, type Fruit in A1, Vegetables in B1 and Baked Goods in C1.
- Step 3: Enter the items under each header. For example, type Apple, Banana, Mango and Orange in A2:A5, Carrot, Potato and Spinach in B2:B4, and Bagel and Muffin in C2:C3. Leave no blank cells inside a list.

Name the Lists
- Step 4: Select A1:C1, click the Name Box to the left of the formula bar, type Category and press Enter.
- Step 5: Select A1:A5, including the header. Go to Formulas > Create from Selection, check Top row only, clear any other boxes and select OK.
- Step 6: Repeat Step 5 for B1:B4, then again for C1:C3. Selecting each list separately keeps empty cells out of the drop-downs.
Tip: Open Formulas > Name Manager to check the results. The names should read Baked_Goods, Category, Fruit and Vegetables. Excel adds the underscore because names cannot contain spaces. On a Mac without a Name Manager button, choose Formulas > Define Name.
Create the First Drop-Down List
- Step 7: On the Orders sheet, type Category in A1 and Item in B1.
- Step 8: Select A2:A50, or as many rows as the order sheet needs.
- Step 9: Go to Data > Data Validation. On the Settings tab, set Allow to List.
- Step 10: In the Source box, type =Category, make sure In-cell dropdown is checked and select OK.
Create the Dependent Drop-Down List
- Step 11: Select B2:B50, starting the drag at B2 so that it is the active cell.
- Step 12: Go to Data > Data Validation and set Allow to List.
- Step 13: In the Source box, enter =INDIRECT(SUBSTITUTE($A2,CHAR(32),CHAR(95))) and select OK.
- Step 14: If A2 is empty, Excel displays the message The Source currently evaluates to an error. Do you want to continue? Select Yes. This is expected because no category has been chosen yet.
Tip: The dollar sign in $A2 locks the column but lets the row number change. As a result, B2 reads A2, B3 reads A3, and every row gets its own matching list.
The formula does two jobs. SUBSTITUTE swaps each space, CHAR(32), for an underscore, CHAR(95). INDIRECT then turns that text into the named range with the same name.
Test Both Lists
- Step 15: Click A2, open the arrow and choose Fruit.
- Step 16: Click B2 and open its arrow. Only Apple, Banana, Mango and Orange should appear.
- Step 17: Change A2 to Baked Goods, clear B2 and open its list again. Bagel and Muffin should now be the only choices.
- Step 18: Save the workbook.
Common Problems and Fixes
The Second Drop-Down Does Not Open
First, confirm that the cell in column A on the same row has a category selected. Next, compare that category with the names in Name Manager. Apart from spaces becoming underscores, the spelling must match. Delete any incorrect name and create it again.
A Named Range Cannot Be Found
The message A named range you specified cannot be found usually points to a typo in the Source box or a name that was never created. Check that =Category is spelled correctly and that Category appears in Name Manager.
Every Row Shows the Same Items
The formula is probably locked to one cell with $A$2. Select B2:B50, reopen Data Validation and change the reference to $A2.
Blank Choices Appear in a List
The named range includes empty cells. Open Name Manager, select the affected name and edit the Refers to box so the range ends at the last item.
An Old Item Stays After the Category Changes
Data Validation does not clear an existing entry. Delete the item and pick a new one. To spot mismatches in a long sheet, go to the Data tab, open the arrow beside Data Validation and choose Circle Invalid Data.
Data Validation Is Grayed Out
Press Enter or Esc to leave cell editing mode. If the button is still unavailable, go to Review > Unprotect Sheet. A workbook that uses the legacy Shared Workbook feature must also be unshared before validation rules can be changed.
Excel Rejects the Formula
Some regional settings use semicolons to separate formula arguments. In that case, enter =INDIRECT(SUBSTITUTE($A2;CHAR(32);CHAR(95))) instead.
Frequently Asked Questions
Can category names contain spaces?
Yes. Create from Selection replaces each space in a name with an underscore, and the SUBSTITUTE part of the formula makes the same change to the selected category, so the two still match.
Can the source lists sit on a different sheet?
Yes. Names created with these steps work across the whole workbook, so the lists can stay on the Lists sheet while the drop-downs appear on the Orders sheet.
How can the drop-downs be added to more rows?
Copy a row that has both drop-downs, select the new cells in columns A and B, open Paste Special and choose Validation. The relative row number adjusts automatically.
Why does Excel say the Source currently evaluates to an error?
The cell that the formula checks is usually empty. Select Yes to continue. If the message appears while that cell contains a category, check that a named range matches the category.
How can new items be added to a dependent list?
Type the new item directly below the list, open Name Manager, select the matching name and extend the Refers to range to include the new cell.
How can a new category be added?
Add the header in D1 with its items underneath, name that list with Create from Selection, then open Name Manager and change the Category range to cover A1 through D1.
Can a third dependent drop-down list be added?
Yes. Create a named list for each second-level item, then apply Data Validation to column C with =INDIRECT(SUBSTITUTE($B2,CHAR(32),CHAR(95))) as the source.
Is VBA needed for dependent drop-down lists?
No. Named ranges, Data Validation and the INDIRECT function handle the whole setup, so the file can be saved as a standard .xlsx workbook.
Can category names include numbers or symbols?
Numbers can appear after the first letter, but names cannot start with a number, look like a cell reference or include most symbols. Plain words separated by spaces work best with this formula.
