Function Problems

Create Dependent Drop-Down Lists for Every Excel Table Row

Ayan MasoodAyan Masood Dec 2, 2026 868 views

Question details

Create dependent drop-down lists that use the primary selection in each Excel table row.

Create Dependent Drop-Down Lists for Every Excel Table Row
Product
Microsoft Excel
Device & OS
not provided
Scenario
A table needs a dependent list for each row, including rows added later.
Observed behavior
Copied dependent lists continue to use the original row's primary selection.
Before you start

Identify the primary-selection column and the dependent-list column. The example below uses Category in column A and the dependent selection in column B, with the first data row in row 2.

Solution 1Recommended

Use Named Ranges and a Relative Row Reference

Use this method to make each dependent list refer to the Category cell in its own row.

This method uses INDIRECT to select a named range based on the current row's category. The column reference stays fixed while the row reference changes.

Direct structured references are not consistently accepted in Excel's Data Validation source, so this example uses a regular cell reference instead.

1
Create the source lists

On a separate worksheet, enter each category's choices in a separate column. For example, place the fruit choices in one column and the vegetable choices in another.

2
Name each list

Select the fruit choices without their header, choose Formulas > Define Name, and name the range Fruit. Repeat for Vegetables and any other categories. Names must match the category values; replace spaces with underscores and use valid Excel range names.

3
Select the dependent cells

Return to the table, enter a valid category such as Fruit in A2, and select the dependent cells in column B, starting with B2 as the active cell. Adjust the column letters and row number if your table is in a different location.

4
Set the validation source

Choose Data > Data Validation, set Allow to List, and enter =INDIRECT(SUBSTITUTE($A2," ","_")) in Source. Select OK. The fixed column $A identifies the category column, while the relative row number lets each selected cell use its own row.

5
Test each row

Choose different categories in column A and open the drop-downs in the corresponding column B cells. Add a table row and check that its validation rule uses that row's category; if it does not, copy a validated cell into the new row.

Use Named Ranges and a Relative Row Reference
Changing a category: Changing a category does not automatically clear an existing dependent selection. Clear or replace the dependent value if it no longer belongs to the new category.
Free Microsoft Office alternative

Work With Spreadsheet Drop-Down Lists in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files and continue working with your tables as you migrate between office suites.

Work with spreadsheet tables and data validation listsCompatible with Microsoft Excel XLSX and XLS filesFamiliar interface for everyday spreadsheet tasksFree and lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why does every dependent list use the first row's category?

The validation source may use a fixed row reference such as $A$2. Use a relative row reference such as $A2 when applying the rule from the first dependent cell.

Can category names contain spaces?

Yes. With =INDIRECT(SUBSTITUTE($A2," ","_")), a category such as Fresh Fruit points to a named range called Fresh_Fruit. Create that name under Formulas > Define Name.

Will a new table row always inherit the validation rule?

Excel may extend the rule when the table grows, but check the new row's drop-down. If the rule is missing, copy a validated cell into the new row and verify its source under Data > Data Validation.

Why does Excel report an error in the list source?

Check that the category in the active row matches an existing named range after spaces are replaced with underscores. Review the names under Formulas > Name Manager and make sure each range contains the intended choices.