Making a dependent (cascading) drop down list in Excel

A while ago we started to explore the capabilities of Excel Data Validation and learned how to create a simple drop-down list in Excel based on a comma-separated list, range of cells or a named range.

Today, we are going to investigate this feature in-depth and learn how to create cascading drop down lists that display choices depending on the value selected in first dropdown. To put it differently, we will make an Excel data validation list based on the value of another list.

How to create multiple dependent dropdown in Excel

Making a multi-level dependent drop-down lists in Excel is easy. All you need is a few named ranges and the INDIRECT formula. This method works with all versions of Excel 365 - 2010 and earlier.

1. Type the entries for the drop-down lists

First off, type the entries you want to appear in the drop-down lists, each list in a separate column. For example, I'm creating a cascading dropdown of fruit exporters and column A of my source sheet (Fruit) includes the items of the first dropdown and 3 other columns list the items for the dependent dropdowns.
Type the entries you want to appear in the main and dependent drop-down lists.

2. Create named ranges

Now you need to create names for your main list and for each of the dependent lists. You can do this either by adding a new name in the Name Manager window (Formulas tab > Name Manager > New) or typing the name directly in the Name Box.
Creating a named range

Note. Please pay attention that if your first row is sort of column header like you see in the screenshot above, you shall not include it in the named range.

For the detailed step-by-step instructions please see How to define a name in Excel.

Things to remember:

  1. The items to appear in the first drop-down list must be one-word entries, e.g. Apricot, Mango, Oranges. If you have items consisting of two, three or more words, please see How to create a cascading dropdown with multi-word entries.
  2. The names of the dependent lists must be exactly the same as the matching entry in main list. For example, the dependent list to be displayed when "Mango" is selected from the first drop-down list should be named Mango.

When done, you may want to press Ctrl+F3 to open the Name Manager window and check if all of the lists have correct names and references.
Verifying the ranges' names and references

3. Make the first (main) drop-down list

  1. In the same or in another spreadsheet, select a cell or several cells in which you want your primary drop-down list to appear.
  2. Go to the Data tab, click Data Validation and set up a drop-down list based on a named range in the usual way by selecting List under Allow and entering the range name in the Source box.
    Select the cell(s) in which you want your primary drop-down list to appear and apply Excel Data Validation.

    For the detailed steps, please see Making a drop down list based on a named range.

    As the result, you will have a drop-down menu in your worksheet similar to this:
    The primary drop-down list in Excel

4. Create the dependent drop-down list

Select a cell(s) for your dependent drop-down menu and apply Excel Data Validation again as described in the previous step. But this time, instead of the range's name, you enter the following formula in the Source field:

=INDIRECT(A2)

Where A2 is the cell with your first (primary) drop-down list.
Set up the dependent drop-down list.

If cell A2 is currently empty, you will get the error message "The Source currently evaluates to an error. Do you want to continue?"

Safely click Yes, and as soon as you select an item from the first drop-down menu, you will see the entries corresponding to it in the second, dependent, drop-down list.
The dependent drop-down list in Excel

5. Add a third dependent drop-down list (optional)

If needed, you could add a 3rd cascading drop-down list that depends either on the selection in the 2nd drop-down menu or on the selections in the first two dropdowns.

Set up 3rd dropdown that depends on 2nd list

You can make the drop-down list of this type in the same fashion as we've just made a second dependent drop-down menu. Just remember the 2 important things discussed above, which are essential for the correct work of your cascading drop-down lists.

For instance, if you want to display a list of regions in column C depending on which country is selected in column B, you create a list of regions for each country and name it after the country's name, exactly as the country appears in second dropdown lists. For instance, a list of Indian regions should be named "India", a list of Chines regions - "China", and so on.

After that, you select a cell for the 3rd dropdown (C2 in our case) and apply Excel Data Validation with the following formula (B2 is the cell with the second drop-down menu that contains a list of countries):

=INDIRECT(B2)
Creating a 3rd dropdown that depends on the selection in the 2nd list

Now, each time you select India under the list of countries in column B, you will have the following choices in the third drop-down:
A 3rd dropdown depending on the selection in the 2nd drop-down menu.

Note. The displayed list of regions is unique for each country but it does not depend on the selection in the first drop-down list.

Create a third dropdown dependent on the first two lists

If you need to create a cascading drop down menu that depends on the selections both in the first and second drop-down lists, then proceed in this way:

  1. Create additional sets of named ranges, and name them for the word combinations in your first two dropdowns. For example, you have Mango, Oranges, etc. in the 1st list and India, Brazil, etc. in the 2nd. Then you create named ranges MangoIndia, MangoBrazil, OrangesIndia, OrangesBrazil, etc. These names should not contain underscores or any other additional characters.
    Create additional sets of named ranges.
  2. Apply Excel Data Validation with the INDIRECT SUBSTITUTE formula that concatenates the names of the entries in the first two columns, and removes the spaces from the names. For example, in cell C2, the data validation formula would be:

    =INDIRECT(SUBSTITUTE(A2&B2," ",""))

    Where A2 and B2 contain the first and second dropdowns, respectively.

    As the result, your 3rd drop-down list will display the regions corresponding to the Fruit and Country selected in the first 2 drop-down lists.
    A third dropdown dependent on the selections in the first two lists

This is the easiest way to create cascading drop-down boxes in Excel. However, this method has a number of limitations.

Limitations of this approach:

  1. The items in your primary drop-down list must be one-word entries. See how to create cascading drop-down lists with multi-word entries.
  2. This method won't work if the entries in your main drop-down list contain characters not allowed in range names, such as the hyphen (-), ampersand (&), etc. The solution is to create a dynamic cascading dropdown that does not have this restriction.
  3. Drop-down menus created in this way are not updated automatically i.e. you will have to change the named ranges' references every time you add or remove items in the source lists. To get over this limitation, try making a dynamic cascading drop down list.

Create cascading drop-down lists with multi-word entries

The INDIRECT formulas that we used in the example above can handle one-word items only. For example, the formula =INDIRECT(A2) indirectly references cell A2 and displays the named range exactly with the same name as is in the referenced cell. However, spaces are not allowed in Excel names, which is why this formula won't work with multi-word names.

The solution is to use the INDIRECT function in combination with SUBSTITUTE like we did when creating a 3rd dropdown.

Suppose you have Water melon among the products. In this case, you name a list of water melon exporters with one word without spaces - Watermelon.

Then, for the second dropdown, apply Excel Data Validation with the following formula that removes the spaces from the name in cell A2:

=INDIRECT(SUBSTITUTE(A2," ",""))
Creating a cascading drop-down list with multi-word entries

How to prevent changes in the primary drop down list

Imagine the following scenario. Your user has made the selections in all of the drop-down lists, then they changed their mind, went back to the first list, and chose another item. As the result, the 1st and 2nd selections are mismatched. To prevent this from happening, you may want to block any changes in the first drop-down list as soon as a selection is made in the second list.

To do this, when creating the first dropdown, use a special formula that will check whether any entry is selected in the second drop down menu:

=IF(B2="", Fruit, INDIRECT("FakeList"))

Where B2 contains the second dropdown, "Fruit" is the name of the list that appears in the first drop-down menu, and "FakeList" is any fake name that does not exist.
Preventing changes in the primary drop down list

Now, if any item is selected in the 2nd drop-down list, no choices will be available when the user clicks on the arrow next to the first list.

Creating dynamic cascading drop-down lists in Excel

The main advantage of a dynamic Excel dependent drop-down list is that you are free to edit the source lists and your drop-down boxes will get updated on the fly. Of course, creating dynamic dropdowns requires a bit more time and more complex formulas, but I believe this is a worthy investment because once set up, such drop-down menus are real pleasure to work with.

As with almost anything in Excel, you can achieve the same result in several ways. In particular, you can create a dynamic dropdown using a combination of OFFSET, INDIRECT and COUNTA functions or a more resilient INDEX MATCH formula. The latter is my preferred way because it provides numerous advantages, the most essential of which are:

  1. You have to create 3 named ranges only, no matter how many items there are in the main and dependent lists.
  2. Your lists may contain multi-word items and any special chars.
  3. The number of entries can vary in each column.
  4. The entries' sort order does not matter.
  5. Finally, it's very easy to maintain and modify the source lists.

Okay, enough theory, let's get to practice.

1. Organize your source data in a table

As usual, the first thing for you to do is to write down all the choices for your drop-down lists in a worksheet. This time, you will have store the source data in an Excel table. For this, once you have entered the data, select all of the entries and press Ctrl + T or click Insert tab > Table. Then type a name of your table in the Table Name box.

The most convenient and visual approach is to store the items for the first drop-down as table headers, and the items for the dependent dropdown as table data. The screenshot below illustrates the structure of my table, named exporters_tbl - the fruit names are table headers and a list of exporting countries is added under the corresponding fruit name.
Organize the source data in a table.

2. Create Excel names

Now that your source data is ready, it's time to set up named references that will dynamically retrieve the correct list from your table.

2.1. Add a name for the table's header row (main dropdown)

To create a new name that references the table header, select it and then either click Formulas > Name Manager > New or press Ctrl + F3.

Microsoft Excel will use the built-in table reference system to create the name of the table_name[#Headers] pattern.
Create a name for the table's header row.

Give it some meaningful and easy to remember name, e.g. fruit_list, and click OK.

2.2. Create a name for the cell containing the first drop-down list

I know that you don't have any dropdown yet :) But you have to choose the cell to host your first dropdown and create a name for that cell now because you will need to include this name in the third name's reference.

For example, my first drop-down box is reside in cell B1 on Sheet 2, so I create a name for it, something simple and self-explanatory like fruit:
Create a name for the cell containing the primary drop-down list.

Tip. Use appropriate cell references to copy drop-down lists across the worksheet.

Please be sure to read the following few paragraphs carefully because this a very useful tip you that don't want to miss. Thanks a lot to Karen for posting it!

If you plan to copy your drop-down lists to other cells, then use mixed cell references when creating the name for the cell(s) with your first drop-down list.

For the drop-downs to copy correctly to other columns (i.e. to the right), use relative column (without the $ sign) and absolute row (with $) references like = Sheet2!B$1.

As the result, B1's dependent drop down list will appear in cell B2; C1's dependent drop-down will display in C2, and so on.
Coping dependent drop-down lists to other columns.

And if you plan to copy the dropdowns to other rows (i.e. down the column), then use absolute column (with $) and relative row (without $) coordinates like = Sheet2!$B1.
Coping dependent drop-down lists to other columns

To copy a drop-down cell in any direction, use a relative reference (without the $ sign) like = Sheet2!B1.

2.3. Create a name to retrieve the dependent menu's entries

Instead of setting up unique names for each of the dependent lists like we did in the previous example, we are going to create one named formula that is not assigned to any particular cell or a range of cells. It will retrieve the correct list of entries for the second dropdown depending on which selection is made in the first drop-down list. The main benefit of using this formula is that you won't have to create new names as you add new entries to the first drop-down list - one named formula covers them all.

You create a new Excel name with this formula:

=INDEX(exporters_tbl,,MATCH(fruit,fruit_list,0))

Where:

  • exporters_tbl - the name of the table (created in step 1);
  • fruit - the name of the cell containing the first drop-down list (created in step 2.2);
  • fruit_list - the name referencing the table's header row (created in step 2.1).

I gave it a name exporters_list, as you see in the screenshot below.
Create a name to use for the dependent dynamic menu.

Well, you have already done the major part of the work! Before getting to the final step, it may be a good idea to open the Name Manager (Ctrl + F3) and verify the names and references:
Open the Name Manager and verify the names and references.

3. Set up Excel Data Validation

This is actually the easiest part. With the two named formulas in place, you set up Data Validation in the usual way (Data tab > Data validation).

  • For the first drop-down list, in the Source box, enter =fruit_list (the name created in step 2.1).
  • For the dependent drop-down list, enter =exporters_list (the name created in step 2.3).

Setting up Excel Data Validation for the dynamic cascading drop-down list

Done! Your dynamic cascading drop-down menu is accomplished and will update automatically reflecting the changes you've made to the source table.
Dynamic cascading drop down menu in Excel

This dynamic Excel dropdown, perfect in all other respects, has one shortcoming - if the columns of your source table contain a different number of items, the blank rows will appear in your menu like this:
Blank rows appear in the dependent drop-down menu.

Exclude blank rows from the dynamic cascading dropdown

If you want to clean any blank lines in your drop-down boxes, you will have to take a step further and improve the INDEX / MATCH formula used to create the dependent dynamic drop-down list.

The idea is to use 2 INDEX functions, where the first gets the upper-left cell and the second returns the lower-right cell of the range, or the OFFSET function with nested INDEX and COUNTA. The detailed steps follow below:

1. Create two additional names

Not to make the formula too bulky, create a couple of helper names with the following simple formulas first:

  • A name called col_num to reference the selected column number:

    =MATCH(fruit,fruit_list,0)

  • A name called entire_col to reference the selected column (not the column's number, but the entire column):

    =INDEX(exporters_tbl,,col_num)

In the above formulas, exporters_tbl is your source table's name, fruit is the name of the cell containing the first dropdown, and fruit_list is the name referencing the table's header row.

2. Create the named reference for the dependent dropdown

Next, utilize either of the below formulas to create a new name (let's call it exporters_list2) to be used with the dependent drop-down list:

=INDEX(exporters_tbl,1,col_num) : INDEX(exporters_tbl, COUNTA(entire_col), col_num)

=OFFSET(INDEX(exporters_tbl,1,col_num),0,0,COUNTA(entire_col))

3. Apply Data Validation

Finally, select the cell containing the dependent dropdown and apply Data Validation by entering = exporters_list2 (the name created in the previous step)in the Source box.

The screenshot below shows the resulting dynamic drop-down menu in Excel where all blank lines are gone!
 The dynamic cascading drop-down menu in Excel without any blank lines

Note. When working with dynamic cascading drop down lists created with the above formulas, nothing prevents the user from changing the value in the first dropdown after making the selection in the second menu, as a result, the choices in the primary and secondary dropdowns may mismatch. You can block changes in the first box after a selection is made in the second one by using either VBA or complex formulas suggested in this tutorial.

This is how you create an Excel data validation list based on the values of another list. Please feel free to download our sample workbooks to see the cascading drop-down lists in action. Thank you for reading!

Practice workbook for download

Cascading Dropdown Sample 1- easy version
Cascading Dropdown Sample 2 - advanced version without blanks

329 comments

  1. is there a way for dependent dropdown list without a volatile function?

  2. Why does removing the $ to allow mixed cell reference not allow the second drop down to work? I edited your sample and it broke (named item fruit)

    Thanks
    Bill

  3. I'm getting confused on step 2.3

    "You create a new Excel name with this formula:" -- where/how do I do this?

  4. Thank you very much for this guide! It was comprehensive and enabled me to set up several dynamic dependent dropdowns.

  5. Hii..
    i have created dependent dropdown for 4 columns using OFFSET function, but problem is that i have same options in third column for all options in second column.

    example :

    male/female sam hobbies reading
    gym
    cricket
    passion cricketer
    Engineer

    john hobbies football
    swimming
    passion writter
    football player
    sofia hobbies singing
    reading
    passion singer

    for above example i have created dependent dropdown using OFFSET function but in 3rd when i select hobbies or passion it shows only hobbies or passion of sam due to same option names. so when i select john and then hobbies then it should show hobbies of john.

    please help me to solve that issue...

  6. I need to create a 3 level dynamic cascading dropdown list. My lists have multi-word entries with special characters and the lists contain a different number of options. I have followed the instructions and can get the first 2 working perfectly, but can't seem to add a third level. For this, I have created a second table, where the header is an exact replica of the second level and tried to reference the 2. I've named the cell in the second column (as in step 2.2), as a reference for the third cell, but all I get in the 3rd dropdown cell (when making an entry) is a blank option.

    I have the first 2 levels in one table (as header and table data) as suggested. I don't see how I can include a third level of options using this single table method. Should I create 3 separate tables and what are the steps for this method?

    Help!

    • Hi!
      Unfortunately, without seeing your data it is difficult to give you any advice. For the third level of the drop-down list, you need to create a named range. Note that the range name must not contain special characters or spaces. Read more about named ranges in this article.

      • I'm also looking for a 3rd level.

        My data is as follows:

        Plan Type -> Carrier -> Product

        For example:
        In the header row I have my plan types specified then in each column the carriers (and this is working for a 1 level dependency)
        A B C
        1 ACA Supp PDP
        2 Aetna ACE Aetna
        3 BCBS Cigna UHC

        So, if I select Supp; then I get the option for ACE and Cigna in the next dropdown and based on what I select there, for example, ACE, I would like to have the next dropdown have all of ACE's products (which would be different from Cigna's) and so on.

        Thanks for your help!

        • I'm sorry for the double post - I should have been more specific - I'm using the dynamic cascading drop-down lists method from above and want to have a 3rd tier list based on the answer to the first two since there could be duplication of the company name in the 2nd section - so the unique value would be from the combination of the values in row 1 and the value in, for example, the ACA column. Thanks for any guidance you can provide. Also, the results in the 3rd drop-down would be multiple words with spaces and more than a single option.

          For example, if the first drop down is Supp and the 2nd would be Cigna then a selection for the 3rd drop-down could be any of the following:
          Plan A
          Plan B
          Plan C
          etc

          Or, the options for the 3rd drop-down might be:
          Basic health plan
          Medium health plan
          Super health plan
          Super duper health plan

          or something like that

  7. Good day

    I ram really stuck in trying to do a cascading dependent dropdown list. when using the Offset formula,
    1. "=OFFSET($AL$1,1,MATCH($Z3,$AL$1:$AV$1,0)-1,226,1)" this formula in the Data Validation for "List" resulted in it providing the correct drop-down but populating it to ALL the cells below. if I delete the result it also removes the functionality for the next corresponding drop-down selection.

    2. I the used the Name Manager (which I can't recall which one) and it worked, BUT when copying to dependent drop-down cells to the rest of the cells below, it still copied all the names down and if cleared, the functionality was gone too.

    3. I also tried to have the tables on a different sheet, but it did not allow it.

    At this stage I am so confused and do not know which way forward as I cannot even get the initial drop down to work again - or how to clear range names or Name Manager from the cells , which is probably the cause of the problem. I also could not find the page where I found the Offset formula.

    There is also INDIRECT but as I said nothing works.

    4. Name Manager: must it be workbook or list?

    5. I have used Name Manager to list all the content (2nd drop-down dependent on 1st column) under each Header (First drop-down)

    i. Name: (header and 1st drop-down selection)
    ii. Value: (the content under the Header/1st dropdown)
    iii. Refers to: The current Tab and the Cell range of the content)
    iv. Scope: tried both Workbook and list

    What I need:
    NQF Level (First column) Qualification (2nd Column dependent on 1st column selection)
    - NQF_L01 - Mathematical Literacy (AET4), or
    - NCert: Intro to Mining and Minerals

    - NQF_L10 - DscL Dotor Scientae Chemistry
    - Phd: Doctorate Phylosophy, etc,

    PLEASE guide me in the right direction as I need to make my tool available for use for the audit we are busy with.

    • Hello!
      You can learn more about Excel names, named ranges and Name manager in this article on our blog.
      You may find the example files, links to which you can find at the end of this article, helpful.

  8. Thanks a lot very helpful... but not with figures. :)
    I want to create the same but with figures and percentages but it does not work. Is there any difference? Is it possible to do it in excel?
    Thanks

  9. Hi all,

    good article and very useful use case. However, I somehow could not replicate it in my MacBook, does excel for Mac has certain limitations in this regard.

  10. I am running into difficulties when referencing the source data which is on another sheet called Master
    list: This works with all the data on the same page: (my test page)
    =INDIRECT(ADDRESS(2, COLUMN($K$1) + MATCH(I2, $L$1#, 0), 4) & "#")

    But when I try and add the data validation to a cell on another tab in the workbook it doesn't work: (note Match(G6 has been updated as that is my new drop down cell)

    =INDIRECT("Master list"&ADDRESS(2, COLUMN($K$1) + MATCH(G6, 'Master list'!L1#, 0), 4) & "#")

    Can you see where I maybe going wrong ?

  11. Hi,

    I want to create a dropdown list with non-unique values. I have 2 groups of candidates, Group 1 and Group 2.

    So each candidate is assigned to either group, and I want to be able to select names from that group but it seems like the examples I've come across cater to unique, non-repetitive values?

  12. Is it possible to have a cascading list that will populate information that was provided last year, if no data last year a dropdown list is provided?

    I tried to complete this with a cascading list of a vlookup for last years data, however the vlookup does not compute. Is there a way to get the vlookup to compute?

  13. Is there such a thing as the database of information in the Table being too big? I cannot seem to make this work on a large scale, but I did make it work on a much smaller scale. Just wondering.

  14. Hi Svetlana / team,

    "Creating dynamic cascading drop-down lists in Excel" - you perfectly described my use case!
    I was researching for three weeks how to use extract a data validation range from one table, organized into dropdown 1 (=headers) and dropdown 2 (=individual columns). I have to admit while using Excel for two decades, i never was proficient enough for creating more than basic sheets.
    VLOOKUP, HLOOKUP, INDEX+MATCH, using helper cells for storing extracted range references... ewww.
    Thank you so much for sorting this out for me, really appreciated, have a remaining nice week!

    Btw, additional info you might think about adding:
    - Excel 365 / Excel Online absolutely want semicolons instead of commas in the published formula: =INDEX(exporters_tbl;;MATCH(fruit;fruit_list;0))
    And i have observed this requirement at many other places with formulas too. Not all, though.
    - Excel 365 online version does not show empty rows as values, Excel 365 desktop does

    • Hello!

      The use of semicolons / commas in Excel formulas is controlled by the List Separator, set in your Regional Settings. Comma is the default list separator in North America and some other countries. In European countries, comma is reserved for the decimal symbol and the list separator is usually set to semicolon.

  15. Hello. I'm trying to create a drop-down list with the same selections across multiple columns. Per column, I'd like to hide the previous selections specific to individual columns. The issue I'm having is that if I select an entry in the first column, the entry is now hidden in every column, not just the first column. Any advice?

  16. Hello,
    I've read through this article quite a few times trying to apply it to my project here but keep running into errors. There may be just too much data to do this within excel but maybe I'm just missing some step. Hopefully someone here will be able to guide me in the right direction.

    I've created a database consisting of multiple worksheets where each one represents 1 Year (2000, 2001, 2002... etc.), all the way up to 2021. Within each sheet, a table resides consisting of the same 28 Coloumns with Headers representing Car Manufacturers (BMW, Mercedes.... etc.). In the Rows under each Column Header are the Car Models per that Year.

    From this, I'm trying to make 3 dynamic dependent drop-down lists (Year, Car, Model), where the last drop-down list (Model), would be dependent on both previous selections (Year, Car).

    Is there a way to create this drop-down list to include and pull the source data from all the worksheets? So that I have just 1 set of drop-down lists?

  17. Hi!

    So i need to create a dropdown list based on this condition

    Sheet 1 Column A, the range of list
    Sheet 1 Column B, approval is declared (per row)
    Sheet 2 D5, i need a drop down list where only the approved items on Sheet 1 Column A is listed.
    If it is not approved, it should not show on the list.

    What formula should i write on the data validation?
    Is this possible? Can anyone help me? Thanks in advance.

  18. Hello,
    Kindly help me to add two separate dropdown lists depends on a single dropdown list. For example, Both dropdown menu of State & Delivery time depends on the country dropdown menu.

    Country: State: Delivery time:
    1:India Mumbai 30days for India.
    Odisha
    Chennai

    2:USA Alaska 90days for the USA.
    California
    Florida

  19. Hi,
    Can I use the SUBSTITUTE function within INDEX & MATCH to create dynamic cascading muti-word dropdowns? I did not see an example of combining these two concepts (please let me know if it is there).
    Thanks!

  20. I have 2 Dropdown List with the same options (Included and Excluded) in different sheets. If I select " Included" in one dropdown list, it should also select "Included" on another dropdown list I need VBA code for this.

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)