Smart Systems for Home

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

Excel Drop Down List Based on Another Cell

· 6 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

You can make an Excel drop down list that changes depending on what is in another cell by using a named range, the INDIRECT function, or Excel's built-in dynamic array features. The classic method is data validation with a formula that references names you have defined for each list, so choosing "Fruit" in one cell shows only fruit in the next. This guide uses the Data Validation dialog and the INDIRECT function, both of which exist in current Excel for Windows, Mac and Microsoft 365. Labels and button positions can differ slightly by version, device or region.

What You'll Need

  • Excel for Microsoft 365, Excel 2019 or later (the guidance below works on desktop; the mobile apps support data validation but are awkward for setting up named ranges).
  • A workbook with your data already typed in — one list of categories, and one column of items per category.
  • Familiarity with selecting a range and typing a name in the Name Box (the box to the left of the formula bar).

Step-by-Step

1. Lay out your source lists

Put each sub-list in its own column, with a header row at the top naming the category. For example, in column A put the categories (Fruit, Vegetables, Drinks) in A2:A4, then in B1 type "Fruit" and list the fruits in B2:B6, in C1 type "Vegetables" and list those in C2:C6, and so on. The header cell above each list must exactly match the category name you will select later — same spelling, same case handling (Excel's INDIRECT is not case sensitive, but extra spaces will break the match).

2. Define a named range for each list

Select the cells of the first list, including the header for convenience (for example B1:B6). Click in the Name Box, type a name such as FruitList, and press Enter. Repeat for each list: select C1:C6, name it VegetableList, and so on. Names cannot contain spaces, must not look like a cell reference, and must be unique in the workbook. A fast alternative is Formulas > Define Name, which also shows you the dialog where you can confirm the range the name points to.

3. Set up the dependent drop down cell

Click the cell where the second, dependent list should appear (say E2). Go to Data > Data Validation. In the Allow box choose List. In the Source box, type the formula =INDIRECT($D$2), where $D$2 is the cell holding the category choice. The dollar signs lock the reference so it copies correctly if you apply validation to more rows. Click OK.

4. Create the first, controlling drop down

Select the cell where you pick the category (D2). Data > Data Validation > Allow: List. In Source type the category names separated by commas: Fruit,Vegetables,Drinks — or point at a range such as =$A$2:$A$4. Click OK. Choosing a category here now controls what appears in E2.

5. Apply validation to more rows

Copy the validated cells (D2 and E2) and paste them down the column, or select the range first and apply Data Validation to the whole selection. Because the row reference is relative and the column reference absolute, each row will point at its own category cell. Test with two rows before filling hundreds.

6. Handle blank or invalid selections

If the category cell is empty, INDIRECT returns an error and Excel shows an "The Source currently evaluates to an error" message when you set it up. To avoid this, wrap the formula in IFERROR and point blanks at an empty named range, for example =IFERROR(INDIRECT($D$2),""). Add a small named range called BlankList pointing at an empty cell if you prefer a clean empty list rather than a warning.

7. Test, then protect against typos

Pick each category in turn and confirm the second list changes. Then set the Error Alert tab in Data Validation to Stop, so anyone who pastes data is warned. Remember data validation does not stop pasted values unless you enable the circle-invalid-data check under Data > Data Validation > Circle Invalid Data.

Common Mistakes

  • Header names that do not match the category names. A trailing space or slightly different spelling makes INDIRECT fail silently.
  • Names with spaces. "Fruit List" is invalid; use FruitList.
  • Relative references that break on copy. Leaving out the $ signs means the second list stops tracking the right row.
  • Hard-typing the dependent list instead of using a formula. A plain list in Source will never change.
  • Forgetting to update the named range when a list grows. Consider converting each list to an Excel Table and naming the table column, so new rows are included automatically.

Tips

  • Sort each sub-list alphabetically so users can find items quickly.
  • Use Tables (Insert > Table) for the source data. A structured reference like =INDIRECT($D$2) still works if the name points at the table column.
  • Keep the source lists on a separate sheet and hide it rather than locking it, which keeps the working sheet clean.
  • For Excel 365 users, the newer dynamic array functions let you build the same effect with filtered ranges, but INDIRECT remains the most widely compatible approach.
  • Colour the dependent cell lightly so users know it is meant to be chosen, not typed.

Troubleshooting

The second list shows everything or nothing. Check the category cell text against the header above the named list. Use a formula like =EXACT(D2,B1) in a spare cell to confirm they match exactly.

"The Source currently evaluates to an error." This usually means the category cell is blank or INDIRECT cannot find the name. Confirm the name in the Name Box drop-down, and that the formula uses =INDIRECT($D$2) without quotes around the cell reference.

Copying validation gives wrong lists. Reopen Data Validation on the copied cell and inspect the formula. Mix of $ and no-$ is the usual culprit.

Validation disappears after a paste. Pasting over a validated cell replaces its validation with the pasted cell's settings. Paste values only, or reapply validation after pasting.

Nothing changes when you pick a new category. Excel recalculates automatically, so check that the dependent cell is not set to manual calculation or wrapped in a formula that has cached an old value.

Frequently Asked Questions

Can I make a dependent drop down without INDIRECT?

Yes. In current Excel you can use a formula with FILTER and a lookup of the category against the source table, but INDIRECT with named ranges is simpler and works in more versions.

Why does my drop down show a blank option?

Your named range probably includes empty cells. Shrink the range, or define it against a correctly sized Table column.

Will this work in Excel Online?

Data validation and INDIRECT work in Excel for the web, but setting up named ranges is best done in the desktop app first.

Can I have three levels of dependent drop downs?

Yes, by stacking the same method: name the second-level lists after the second-level values and point the third cell's INDIRECT formula at the cell chosen in the second list.

Does data validation stop people typing other values?

No, it warns or blocks depending on the Error Alert setting, and it does not catch values pasted in. Use sheet protection to reduce accidental edits.