30 Advanced Excel Tips for 2026

Excel Champs / Advanced Excel / How to Create a Dependent Drop-Down List in Excel
By Puneet Gogia (Microsoft MVP)

How to Create a Dependent Drop-Down List in Excel

Put each sub-list in its own column with the main item as the header, such as Chicago, Dallas and Denver above their store names. Select the whole block, go to Formulas ? Create from Selection, tick Top row and click OK. Each column becomes a named range called after its header.

For the first drop-down in A2, use Data ? Data Validation ? List with the headers as the Source, such as =$D$1:$F$1. For the second drop-down in B2, use List with the Source =INDIRECT(A2), which turns the city chosen in A2 into the named range of the same name.

Names cannot contain spaces, so Create from Selection turns “New York” into New_York. Use =INDIRECT(SUBSTITUTE(A2," ","_")) so headers with spaces still work. Type straight quotes, not curly ones copied from a web page, or Excel rejects the formula.

Changing the first drop-down does not clear the second, so an old value can stay next to a new choice. Flag mismatches in a check column with =COUNTIF(INDIRECT(SUBSTITUTE(A2," ","_")), B2)=0, which shows TRUE when B2 no longer fits, or use a short Worksheet_Change macro to clear B2 when A2 changes.

In Excel 365 or 2021, a single input row can skip the named ranges. Keep the pairs in a two-column table, spill the matching items with =FILTER(Stores[Store], Stores[City]=A2) in a spare cell such as H2, and use =$H$2# as the second drop-down’s Source.

The dependent drop-down is all about showing values in a drop-down list according to the selection of the value in another drop-down.

Today, in this post, I’d like to share with you a simple 7-step process to create this drop-down. But first of all, let me tell you why it is important. In the below example, you have two drop-down lists. The size drop-down is dependent on the product drop-down.

two level dependent drop down list

If you select the white paper in the product cell, the size drop-down will show small and medium. But if you select gray paper, its sizes will be medium and large.

So here the basic idea to create a dependent drop-down list is to get the correct size as per the product name. Let’s get started.

Steps to Create a Dependent Drop-Down List in Excel

For creating a dependent drop-down list, we need to use named ranges and the INDIRECT function.

  • First of all, you have to create named ranges for drop-down lists. For this, select the product list. Go to -> Formulas -> Defined Names -> Create from Selection.
how to create a dependent drop down list in excel create a named range
  • You’ll get a pop-up.
  • Tick mark “Top Row” (and untick the other options).
  • Click OK.
how to create a dependent drop down list in excel create a named range click ok
  • By using the same steps, create two more named ranges for sizes. One is for white paper and the second is for gray paper.
how to create a dependent drop down list in excel three named range

Quick Tip: By using this method to create a named range, the value in the first cell will be considered as the name, and the rest of the values as the range. You can also use a dynamic named range for this.

A name can’t have spaces, so if a heading is “White Paper Sheet”, Excel creates the name “White_Paper_Sheet”. Keep that in mind for the size drop-down below.

  • Now select the cell where you want to add the product drop-down and Go to -> Data -> Data Tools -> Data Validation.
how to create a dependent drop down list in excel create drop downlist for products
  • In the data validation window, select “List” and in “Source” enter the below formula and then click OK.
how to create a dependent drop down list in excel drop down window

=INDIRECT(“Product”)

  • Select the cell where you want to add a size drop-down list. Go to -> Data -> Data Tools -> Data Validation.
  • In the data validation window, select “List” and in “Source” enter the below formula and click OK.
how to create a dependent drop down list in excel drop down window

=INDIRECT(A5)

Here, A5 is the cell with the product drop-down. Don’t put A5 in quotes: INDIRECT(“A5”) would just return the value of cell A5 itself, while INDIRECT(A5) takes the product name in A5 and refers to the named range with that name. If your product names have spaces, replace them with underscores in the formula so they match the names Excel created:

=INDIRECT(SUBSTITUTE(A5," ","_"))

Finally, your dependent drop-down list is ready.

two level dependent drop down list

How Does it Work

First, you have created three named ranges. Then we used one named range to create a product drop-down. After that, for the second drop-down list, you have used the INDIRECT function and referred to the value in the product cell.

If you notice, our size-named ranges have a name equal to the values we have in the product drop-down.

When we select “WhitePaperSheet” in the product cell, then in the size cell, the INDIRECT function refers to the named range “WhitePaperSheet” and when you select “GreyPaperSheet” it will refer to the named range “GreyPaperSheet”.

Three-Level Dependent Drop-Down List

In the above example, you have created a two-level dependent drop-down list. But sometimes, we need to create a list with three-level dependencies. For this, all you have to do is create a third drop-down list that depends on the selection of the second drop-down list.

Let’s say we want to add a drop-down list with “Length x Width” of the sizes for paper sheets.

how to create a dependent drop down list in excel with three level data

And, for this, you have to create a third drop-down list that will show the “Length X Width” as per size selection.

Here are the steps:

  • Create three more named ranges using the same method which we have used above.
how to create a dependent drop down list in excel with three level data new named ranges
  • Select the cell where you want to insert your third drop-down.
  • Open drop-down options & insert the following formula in the source.
how to create a dependent drop down list in excel with three level add drop down list

=INDIRECT(C5)

  • Click OK.

Here, C5 is the cell with the size drop-down, and the three new named ranges have the same names as the size values.

Now, your three-level drop-down list is ready.

three level dependent  drop down list in excel ready

sample-file

Dependent Drop-Down with FILTER in Microsoft 365

In Excel 2021 and Microsoft 365, you can skip the named ranges. Keep your data in two columns (product in column H and size in column I, for example), and in a helper cell like F2, enter the following formula. It returns the sizes for the product selected in cell A5:

=FILTER($I$2:$I$20,$H$2:$H$20=A5)

After that, in the size cell’s data validation, select “List” and enter the following in “Source”. The # sign refers to the whole spill range, so the list grows and shrinks with the results:

=$F$2#

Frequently Asked Questions

Why does Excel say the source evaluates to an error?

The product cell is still empty, so INDIRECT has nothing to refer to. Click Yes to continue; the list works as soon as you select a product.

Why does the old size stay after I change the product?

Data validation only checks a value when you enter it, so the old size stays in the cell. Select a new size from the list, or use a small VBA code on the worksheet’s Change event to clear the size cell whenever the product changes.

Can I use a table for a dependent drop-down?

Yes. Data validation doesn’t accept a table reference directly, but you can wrap it in INDIRECT, like INDIRECT(“Table1[Product]”), or create a named range that refers to the table column.

18 thoughts on “How to Create a Dependent Drop-Down List in Excel”

  1. I find when copying the validation and named ranges to other workbooks, the “indirect()” formula does not work. Is there a fix for this?

    Reply
  2. Hi Puneet
    If you make a selection from all three drop downs, then go back and change the first drop down to another selection, the drop downs of second and third step can be invalid because they are based on original selections and don’t flag a change. e.g start with white paper, small, 12x 12 then change first box to gray paper. 2nd box stays small but that is not a valid option for gray
    You need to insert error check formulae to highlight this.

    Reply
  3. Okay, I need some HELP! I need a total of 4-drop down lists.
    Dimensions | Part Number | Description | Ribbons
    The Drop Down for “Dimensions” would display various sizes, then “Part Number” would be dependent on the “Dimensions” cell, then “Description” would be dependent of the “Part Number” cell, and finally the “Ribbons” is dependent on the “Description” cell.
    I don’t want to use VBA. I can get my Dimensions & Part Number to work using the “Offset” function, but then I can’t get my next two (2) drop downs to function.
    Sample Data:
    Dimensions Part Numbers Material Descriptions Suggested Ribbons
    –Select Dim– –Select P/N– –Select Material– –Select Ribbon–
    0.250″ H x 0.750″ W THT-1-724-10 UltraTemp Amber Polyimide R4300
    0.250″ H x 0.750″ W THT-1-727-10 UltraTemp Gloss Polyimide R6000
    0.500″ H x 1.000″ W THT-5-423-10 WorkHorse Glossy Polyester R4900, R6000, R6200
    0.500″ H x 1.000″ W THT-5-423-10-YL Yellow WorkHorse Glossy Polyester R4900, R6000, R6201
    0.750″ H x 1.500″ W THT-6-428-10 Metallized Polyester R4300, R4500, R6200
    Any help would be GREAT!

    Reply
  4. On the basis of dependent drop down list in UserForm ,how can I saperated data in saperated worksheet by VBA

    Reply
  5. Really you are great, amazing experienced, Excel. Expert
    I want to create 6 level drop-down list.
    Is it possible ?
    Without VBA and with VBA

    Reply
  6. Dear Puneet,
    Your posts are always appreciated.
    What I want to do with the three way lookup is goto 3 separate woorkbooks , then pick the MARK SHEET from that workbook then pick which column then the students name. I am doing my chidren’s Excel marksheets for shool. There are three clases, graade 11A 11D and 11H.. Then I want to pick the final mark for term 1, 2, 3 or final. Then pick the student’s name.
    Kind regards,
    Andre.

    Reply
  7. How do we create a dependent dropdown list, with data reset in all entries on the LHS of the entry being changed?

    Reply
  8. I’d clear the dependent list cell upon a change of the first list cell with a macro in WorkSheet.
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = “$A$5” Then Range(“B5”) = “Select Paper”
    End Sub

    Reply
  9. My size dropdown only shows the product name I have selected in the first dropdown. The example file gives me an error (‘The source currently evaluates to an error’) when I try and work with that, despite using your cell references.

    Reply
    • Please share a snapshot of cell reference you have in second drop down.

      Reply
  10. How many columns of dependable drop down menu, can a person create ? Can it be like 5, 10, 20, 100, and so on rows?

    Reply
    • Yes you can. It’s may be bit complex but not really hard.
      Tell me if you need any further help.

      Reply

Leave a Comment