Google Sheets dependent drop-down lists practice file

Get the Dependent Drop-Down Practice File

Your own copy of the Google Sheets file from the video, with both methods set up: FILTER for data in a table and INDEX MATCH for data in a report layout.

What Is a Dependent Drop-Down List?

Our objective is to create two dropdown lists.  The first list will present a list of Divisions while the second dropdown will present a list of Apps.

We only wish to see items from the Apps list that are related to the selected Division.  This makes the second dropdown shorter and easier to navigate.

We will present two different methods for achieving this behavior.  The first method will utilize a table as its list source while the second method will utilize a report as its source list.

Google Sheets master data for divisions and apps in a tabular layout and in a report layout

For simplicity’s sake, the examples below will have the dropdown lists and the source tables on the same sheet.  In the Real World, the source tables would be stored on a separate sheet and likely hidden from the user.

Method 1: Dependent Drop-Downs from a Table with FILTER

Our data source is a list of Apps preceded by their associated Division.

Tabular list with a Division column and an App column in Google Sheets

Create the Division Drop-Down

We will create a dropdown list in cell A4 that presents a unique list of Divisions.

One of the great things about Google Sheets is that the Data Validation tool will automatically remove the duplicates from a selected range.  This renders a unique list of items.

To create the dropdown for Division, perform the following steps:

  1. Select cell A4.
  2. Go to Data, Data validation, and click Add rule.
  3. Under Criteria, choose Dropdown (from a range) and enter E5:E. Leaving the range open at the bottom means new divisions are picked up automatically.
  4. Open Advanced options, choose Reject the input, and click Done.
Google Sheets data validation set to a list from the range E5:E with reject input

We can click the dropdown button located in cell A4 to reveal the following list of Divisions.

Division drop-down in Google Sheets showing the unique values Productivity, Utility and Game

This is the tricky part: creating a drop-down list

We only wish to display Apps that are associated with the selected Division from the first dropdown list.

Build the Helper List with FILTER

Google Sheets doesn’t let you put a formula inside the drop-down rule. We will write the formula in a “helper column” and reference the results with Data Validation.

The formula we will write to create a list of associated Apps based on the selected Division utilizes the FILTER function.

If you are unfamiliar with the FILTER function in Google Sheets, click the following link to read and view all about this amazing Sheets function.

Google Sheets – FILTER Function

To create the helper formula, select cell H5:

=FILTER(F5:F, E5:E = A4)

We are presented with a list of associated Apps for the selected Division.

FILTER helper column returning the apps for the selected division

BONUS: If you would like to have the results of the helper formula displayed in alphabetical order, wrap the FILTER function within a SORT function, like the following formula shows.

=SORT(FILTER(F5:F, E5:E = A4) )
Data prep helper list with the apps that belong to the selected division

Create the Dependent App Drop-Down

Creating the second dropdown involves the following steps:

  1. Select cell B4.
  2. Go to Data, Data validation, and click Add rule.
  3. Under Criteria, choose Dropdown (from a range) and enter H5:H, the helper list.
  4. Open Advanced options, choose Reject the input, and click Done.
Data validation for the second drop-down pointing to the helper list H5:H

We can click the second dropdown button located in cell B6 to reveal the following list of associated Apps.

App drop-down showing only the apps of the selected division

Test the Table Drop-Downs

If a different Division is selected from cell A4, a new list of Apps is presented by the Apps dropdown in cell B4.

Changing the division updates the list of apps in the dependent drop-down

Method 2: Dependent Drop-Downs from a Report with INDEX and MATCH

Our data source is a list of Divisions as column headings with their associated Apps listed below.

Report layout with the divisions Productivity, Game and Utility as column headers

Create the Division Drop-Down from the Headers

We will create a dropdown list in cell A6 that presents a unique list of Divisions.

To create the dropdown for Division, perform the following steps:

  1. Select cell A6.
  2. Go to Data, Data validation, and click Add rule.
  3. Under Criteria, choose Dropdown (from a range) and enter J4:L4. A horizontal range works just as well.
  4. Open Advanced options, choose Reject the input, and click Done.
Data validation for the division drop-down using the horizontal header range J4:L4

We only wish to display Apps that are associated with the selected Division from the first dropdown list.

Build the Helper List with INDEX and MATCH

Just like in Method 1, the formula can’t go inside the drop-down rule, so we will write the formula in a “helper column” and reference the results with Data Validation.

The formula we will write to create a list of associated Apps based on the selected Division utilizes the INDEX/MATCH functions.

New to INDEX and MATCH? This guide to INDEX MATCH with multiple criteria walks through how the two work together. The functions work the same way in Google Sheets.

To create the helper formula, select cell N5 and enter the formula:

=INDEX(J5:L30, , MATCH(A6, J4:L4, 0) )

We are presented with a list of associated Apps for the selected Division.

INDEX and MATCH helper column returning the apps from the column of the selected division

To explain in plain terms what this formula does…

  1. The MATCH function locates the selected Division from cell A6 within cell J4:L4 (the 0 instructs MATCH to find it exactly).
  2. The discovered column number (1, 2, or 3) is returned to INDEX that returns all rows from the same numbered column in range J5:L30.

NOTE: 2 commas separate the INDEX function from the MATCH function.  The argument that would rest between these commas denotes the number of rows to return from the defined column.  As this has been left empty, the behavior of INDEX is to return all rows.

As seen in the first solution, if we wish to have the results displayed in alphabetical order, nest the INDEX/MATCH function within a SORT function.

=SORT(INDEX(J5:L30, , MATCH(A6, J4:L4, 0) ) )
Data prep helper list created with INDEX and MATCH

Create the Dependent Drop-Down from the Helper List

Creating the second dropdown involves the following steps:

  1. Select cell B6.
  2. Go to Data, Data validation, and click Add rule.
  3. Under Criteria, choose Dropdown (from a range) and enter N5:N, the helper list.
  4. Open Advanced options, choose Reject the input, and click Done.
Data validation for the second drop-down pointing to the helper list N5:N

We can click the second dropdown button located in cell B4 to reveal the following list of associated Apps.

Dependent drop-down showing the apps of the division selected from the report headers

Test the Report Drop-Downs

If a different Division is selected from cell A6, a new list of Apps is presented by the Apps dropdown in cell B6.

Why the Second Drop-Down Doesn’t Reset

Be mindful that if an App is selected from the second dropdown, then the user selects a different Division, the displayed app will not correspond to the newly selected Division.  The App cell does not automatically reset (i.e. clear) itself when a conflicting Division is selected.

App cell flagged as invalid after the division changed, because it does not reset on its own

To clear the second cell automatically, you need Apps Script. This is a topic covered in my Google Sheets Master Class.  Check it out below.

Featured Course

Google Sheets – The Comprehensive Masterclass

Master the Powerful Features of Google Sheets from data collection, automation to proper data analysis and visualization. This course will teach you everything you need to know about Google Sheets. Plus you’ll benefit from our EXCLUSIVE bonuses.
Learn More
Google Sheets course cover

Click the image to the right to read about creating MULTIPLE dependent dropdown lists in Google Sheets.

Download the Practice File

Download the Dependent Drop-Down Practice File

Both methods from this tutorial in one Google Sheets file.

Frequently Asked Questions

How do I create a dependent drop-down list in Google Sheets?

Create the first drop-down from your list of categories. In a helper range, use a formula such as FILTER to list only the items that belong to the selected category. Then create the second drop-down from that helper range.

Can I use a formula inside a Google Sheets drop-down rule?

No. The Dropdown (from a range) option only accepts a range. Put the formula on the sheet, in a helper column or a separate tab, and point the drop-down to the cells where the results appear.

Do I need a unique list for the first drop-down?

No. A Google Sheets drop-down from a range removes duplicates on its own, so you can point it straight at a column where each category appears many times.

How do I create a dependent drop-down when the categories are column headers?

Use INDEX with MATCH. MATCH finds the column of the selected category in the header row, and INDEX returns that whole column. Leave the row argument of INDEX empty so all rows come back.

Why does the second drop-down not clear when I change the first one?

Data validation does not change existing values. The old selection stays and is marked as invalid until you pick a new item. To clear it automatically, you need a small Apps Script.

Can I sort the dependent drop-down list alphabetically?

Yes. Wrap the helper formula in SORT, for example SORT(FILTER(F5:F, E5:E = A4)). The second drop-down then shows the items in alphabetical order.

Leila Gharani

Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.