How do you make a drop-down list change depending on selection?

Dependent Drop-down Lists

This example describes how to create dependent drop-down lists in Excel. Here's what we are trying to achieve:

The user selects Pizza from a drop-down list.

How do you make a drop-down list change depending on selection?

As a result, a second drop-down list contains the Pizza items.

How do you make a drop-down list change depending on selection?

To create these dependent drop-down lists, execute the following steps.

1. On the second sheet, create the following named ranges.

NameRange AddressFoodA1:A3PizzaB1:B4PancakesC1:C2ChineseD1:D3

How do you make a drop-down list change depending on selection?

2. On the first sheet, select cell B1.

3. On the Data tab, in the Data Tools group, click Data Validation.

How do you make a drop-down list change depending on selection?

The 'Data Validation' dialog box appears.

4. In the Allow box, click List.

5. Click in the Source box and type =Food.

How do you make a drop-down list change depending on selection?

6. Click OK.

Result:

How do you make a drop-down list change depending on selection?

7. Next, select cell E1.

8. In the Allow box, click List.

9. Click in the Source box and type =INDIRECT($B$1).

How do you make a drop-down list change depending on selection?

10. Click OK.

Result:

How do you make a drop-down list change depending on selection?

Explanation: the INDIRECT function returns the reference specified by a text string. For example, the user selects Chinese from the first drop-down list. =INDIRECT($B$1) returns the Chinese reference. As a result, the second drop-down lists contains the Chinese items.