Smart Systems for Home

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

Excel Dropdown List Based on Another Cell (Dynamic)

· 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

To create an Excel dropdown list that changes based on another cell's value, use the INDIRECT function with named ranges. This gives you a cascading or dependent dropdown—for example, choosing "Fruits" in one cell makes the next cell's dropdown show only apples, bananas, and cherries. If you need a simpler static dropdown, that's just Data Validation with a fixed list—but this guide covers the dynamic version, which is what most people mean by "based on criteria."

What You'll Need

  • Excel 2010 or newer (the steps work the same in Excel for Microsoft 365, Excel 2016, 2019, and 2021).
  • A list of categories (e.g., "Fruits", "Vegetables") and a separate list for each category's items.
  • Basic familiarity with Excel's Name Manager (we'll walk through it).

Step-by-Step

Step 1: Set up your source data

In a worksheet (call it "Lists" or use a hidden sheet), create two columns. In column A, list your main categories (one per row, no blanks). In column B, list all possible items for the first category. In column C, list items for the second category, and so on. For example:

  • A1: "Fruits", B1: "Apple", C1: "Carrot"
  • A2: "Vegetables", B2: "Banana", C2: "Broccoli"
  • A3: (blank), B3: "Cherry", C3: "Cucumber"

Make sure each category column has a header in row 1 (like "Fruits" in B1) that exactly matches the category name in column A. That match is critical—the INDIRECT function will use that header as the named range.

Step 2: Name each category range

Select the cells containing the items for the first category (e.g., B2:B10). Go to the Formulas tab and click Define Name. In the "Name" field, type the exact category name (e.g., "Fruits"). Ensure the "Scope" is set to "Workbook" (default). Click OK. Repeat for each category column (e.g., name C2:C10 as "Vegetables").

Step 3: Create the first (category) dropdown

Select the cell where you want the main category dropdown (say, E2). Go to Data > Data Validation (in Excel 2016 and later, it's under Data > Data Validation; in older versions, it's Data > Validation). In the "Allow" box, choose "List". In the "Source" box, type =Lists!$A$1:$A$3 (adjust the sheet name and range to where your categories are). Make sure "In-cell dropdown" is checked. Click OK.

Step 4: Create the dependent (item) dropdown

Select the cell for the second dropdown (say, F2). Open Data Validation again. Choose "List" and in the "Source" box, type:

=INDIRECT(E2)

This tells Excel: "Look at the value in E2, and use that as the named range." Click OK.

Step 5: Test it

In E2, choose "Fruits" from the dropdown. Now click F2—you should see Apple, Banana, Cherry. Change E2 to "Vegetables" and F2's dropdown updates to Carrot, Broccoli, Cucumber. If it doesn't work, check that the named ranges exist and that the names match exactly (including spaces and case—Excel names are case-insensitive but spaces matter).

Common Mistakes

  • Mismatched names: The named range must be exactly the same as the category text. If your category says "Fruits" but the named range is "Fruit", INDIRECT fails.
  • Using cell references instead of named ranges: INDIRECT only works with text strings. If you type =INDIRECT(E2) but E2 contains "B2:B10" (a range), it won't work—it must be a named range.
  • Blanks in the source list: If your category list in column A has blank rows, the dropdown will show blanks. Use a dynamic range or keep the source range tight.
  • Hidden sheet issues: If you put the lists on a hidden sheet, Excel might complain. It's safer to keep the sheet visible or use a very hidden sheet (via VBA) if you must.
  • Data Validation with spaces: If your category names have trailing spaces, the match fails. Use TRIM or clean your data.

Tips

  • Use Excel Tables: Convert your category list to a table (Ctrl+T). Then the source for the first dropdown can be =Table1[Categories] and it auto-expands as you add rows.
  • Make the lists dynamic: If your item lists grow, use OFFSET-based named ranges. For example, define "Fruits" as =OFFSET(Lists!$B$2,0,0,COUNTA(Lists!$B:$B)-1,1). This counts non-empty cells, so the range expands automatically.
  • Use a helper column for the first dropdown: If your categories are many, put them in a helper column and reference that.
  • Sort your lists: Excel doesn't require sorting, but it makes long lists easier to navigate.
  • Copy the dropdowns: If you need the same dependent dropdown in multiple rows, copy the cell with the dropdown and paste to other cells. Data Validation copies along.

Troubleshooting

If the dependent dropdown shows an error or is empty, try these in order:

  1. Check the named range: Go to Formulas > Name Manager. See if the range exists and if the name matches the category text exactly. If not, edit or recreate it.
  2. Check the INDIRECT formula: Select the dependent cell, open Data Validation, and verify the Source is =INDIRECT(E2) (or whatever cell holds the category). If you typed the cell reference wrong, fix it.
  3. Test INDIRECT manually: In a blank cell, type =INDIRECT("Fruits"). If that returns a #REF! error, the named range doesn't exist. If it returns a spill of values, the range is fine.
  4. Ensure the category cell has a value: If E2 is empty, INDIRECT("") returns an error. Put a default value in E2 or add a note to users.
  5. Check for circular references: If your source lists are on the same sheet as the dropdowns, you might get a circular reference. Move the lists to another sheet.
  6. Excel version differences: In older Excel (2010), INDIRECT works the same, but Data Validation might have slightly different wording. The steps are essentially identical.

Frequently Asked Questions

Can I make the dropdown depend on multiple criteria (e.g., region and product type)?

Yes, but it's more complex. You can use a helper column that concatenates the two criteria (e.g., "East-Fruits") and then create named ranges with those combined names. Or use a formula-based approach with FILTER (in Excel 365) or array formulas. The INDIRECT method works for one level; for two levels, you often need a helper column.

Why does my INDIRECT formula give a #REF! error?

That error means the named range doesn't exist. Check the Name Manager for typos, or ensure the name is exactly the same as the category text. Also, if the named range is scoped to a specific sheet (not Workbook), INDIRECT might not find it. Set scope to Workbook.

Can I use this on Excel for Mac?

Yes, the steps are identical. The menus are the same (Data > Data Validation). Named ranges work the same way.

How do I remove the dropdown?

Select the cell(s), go to Data Validation, and click "Clear All" at the bottom of the dialog box. That removes the validation but keeps the cell's current value.

Can I have a dropdown that shows items based on a cell that is not a dropdown?

Yes, the source cell can be any cell with text. It doesn't have to be a dropdown itself. Just make sure the text matches a named range.

What if my lists are very long?

Use dynamic named ranges with OFFSET and COUNTA, or convert to an Excel Table. That way, you don't have to update the range every time you add an item. For the first dropdown, you can also reference the table column directly.