Dependent Drop-down Lists

[Originally Posted By]: http://www.excel-easy.com/examples/dependent-drop-down-lists.html

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.

First Drop-down List

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

Second Drop-down List

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

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

Name Range Address
Food A1:A3
Pizza B1:B4
Pancakes C1:C2
Chinese D1:D3

Named Ranges

2. On the first sheet, select cell B1.

3. On the Data tab, click Data Validation.

Click Data Validation

The ‘Data Validation’ dialog box appears.

4. In the Allow box, click List.

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

Validation Criteria

6. Click OK.

Result:

First Drop-down List

7. Next, select cell E1.

8. In the Allow box, click List.

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

Indirect Function

10. Click OK.

Result:

Dependent Drop-down Lists

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s