Create a Cascading Drop-Down List in Excel & Google Sheets

Written by

Mel Jenkins

Reviewed by

Laura Tsitlidze

Last updated on July 9, 2022

This tutorial will demonstrate how to create a cascading (also called “dependent” or “conditional”) drop-down list in Excel and Google Sheets.

 

CascadingIntro

 

A cascading drop-down list is a list based on the value that is selected in a different list. In the example above, the user has selected LG as the Phone Make. The list showing Phone Models of phones will then show only the LG models. If the user were to select either Apple or Samsung, then the list would change to show the relevant models for those makes of phone.

 

CascadingDropDowns

 

Create Range Names

The first step in creating cascading drop-down lists is to set a location to store the list data and create range names from those lists of data.

  1. In a separate location, type in the information that is required for the drop-down lists. This can be in a separate worksheet or in a range of blank cells to the right of the required drop-down lists.

 

Cascading Data

 

  1. Then select the data for the first list and create a range name for that data. In the Ribbon, select Formulas > Define Name.

 

Cascading Ribbon

 

  1. Type in the name for the range of data, and then click OK.

 

Cascading RangeName

 

  1. Repeat this for each of the individual lists (for this example, Apple, Samsung, and LG). After creating the range names, in the Ribbon, select Formulas > Name Manager (or press CTRL + F3 on the keyboard) to see the range names in the Name Manager.

 

Cascading NameManage

 

Create the First Drop-Down List Using Data Validation

Drop-down lists are a type of data validation rule.

  1. Select the cell where you want the first (main) drop-down list to go.
  2. In the Ribbon, select Data > Data Tools > Data Validation.

 

Cascading_DataValidation

 

  1. In the Settings tab, select List under Allow, and ensure that Ignore blank and In-cell dropdown are checked. Type in the name of the range as the Source for the drop-down list.

 

Cascading Mainlist

 

  1. To set up a message to inform the worksheet users that they need to select from a drop-down list, select the Input Message tab and check the Show input message when cell is selected check box. Type in your Title and input message.

 

DDList Message

 

  1. Select the Error Alert tab and set up a message when the user does not select from the valid drop-down list. Make sure that Show error alert after invalid data is entered is checked, and then select the Style in the drop-down list. Then type in a Title and error message for the warning.

 

DDList Alert

 

  1. Click OK to add the data validation rule to the selected cell.
  2. This will create the first drop-down list showing the different makes of cell phones.

 

Cascading MainDropDown

 

Create Cascading Drop-Down List With Data Validation

  1. Select the cell where you want the second (dependent) drop-down list to go.
  2. In the Ribbon, select Data > Data Tools > Data Validation.

 

  1. In the Settings tab, select List from the Allow field, and ensure that Ignore blank and In-cell dropdown are checked.
  2. Type in the following formula and then click OK.
=INDIRECT(C2)

Note: You could alternatively use an IF statement.

 

Cascading_SecondDropDown

 

  1. If you do not have a value in C2, you will get the error message:
    The Source currently evaluates to an error. Do you want to continue?
    This is because you have not selected from the drop-down list in C2; click Yes to override the message.
  1. Select a Phone Make from the first drop-down list, and then select the second drop-down list to see the cascading list.

 

Cascading SecondDropDownShown

 

Create a Cascading Drop-Down list in Google Sheets

Creating a cascading drop-down list in Google Sheets is quite different from creating one in Excel as you cannot use the INDIRECT Function. Instead, use the INDEX and MATCH Functions (which can also be used in Excel).

  1. As with Excel, the first step in creating cascading drop-down lists is to set a separate location in the sheet to store the list data.

 

Cascading GS Data

 

You can then create a named range for the values you want in the first drop-down list.

  1. Select the data for the named range and then from the Menu, select Named ranges.

 

Cascading GS Menu

 

  1. Type in the name to give the range, and then click Done.

 

Cascading GS NamedRange

 

  1. For the first drop-down list, click in the cell where it needs to appear and then in the Menu, select Data > Data validation.

 

Cascading GS DataValidation

 

  1. Set the Criteria by selecting List from a range and typing in the name of the named range you created. Click Save.

 

Cascading GS FirstList

 

  1. Select an option from the newly created drop-down list (for example, Apple).

 

Cascading GS FirstDropDown

 

From this point, Google Sheets differs from Excel. Returning to the location where the list data is stored, match the option selected in the first drop-down list with the lists you have created in your data.

  1. First, create a reference to the selected option.

 

Cascading GS SelectedOption

 

  1. Then, in the cell beneath the reference, type in the following formula.
=INDEX($C$2:$E$8, , MATCH(G1, $C$1:$E$1, 0) )

This formula will look for a matching value in the range C1:E1 (Apple, Samsung, or LG), and return the list directly below that range (C2:E8).

 

Cascading GS MatchList

 

Then use this list as the second range for the cascading drop-down list.

  1. Select the cell where you want the cascading drop-down list to appear.

 

Cascading GS SecondList Location

 

  1. In the Menu, select Data validation, and then select the range you created above as the range for the list. Click Save.

 

Cascading GS SecondList Validation

 

Now when you change the value of the original drop-down list, the range available in the second drop-down list will also change.

 

Cascading GS Final

AI Formula Generator

Try for Free

See all How-To Articles