Drop-down list 2 dependent dropdown lists


A drop down list is an awesome tool. You can pre-define some values and user can enter data by selecting one of those values.

One of its advanced features is a Dependent Drop Down List.

A 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, Id like to share with you a Simple 7-StepsProcess 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. Size drop down is dependent on product drop down.

Drop-down list 2 dependent dropdown lists

If you select the white paper in product cell then in size drop down will show small and medium.

But, if you select gray paper then its size will be medium and large.

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

So lets 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 indirect function. And, please download this sample file from here to follow along.

  • First of all, you have to create named ranges for drop down lists. For this, select product list. Go to -> Formulas -> Defined Names -> Create from selection.
Drop-down list 2 dependent dropdown lists
  • Youll get a pop-up. Tick mark Top Row & click OK.
Drop-down list 2 dependent dropdown lists
  • By using same steps, create two more named ranges for sizes. One is for white paper and second for the gray paper.
Drop-down list 2 dependent dropdown lists

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

  • Now select the cell where you want to add product drop down and Go to -> Data -> Data Tools -> Data Validation.
Drop-down list 2 dependent dropdown lists
  • In data validation window, select List and in Source enter below formula and then click OK.
=Indirect(Product)
Drop-down list 2 dependent dropdown lists
  • Select the cell where you want to add size drop down list. Go to -> Data -> Data Tools -> Data Validation.
  • In data validation window, select List and in Source enter below formula and click OK.
=Indirect(A5)
Drop-down list 2 dependent dropdown lists

Finally, your dependent drop down list is ready. You can download this sample file from here to try it yourself.

Drop-down list 2 dependent dropdown lists

How does it work

First, you have created three named ranges. Then we have used one named range to create product drop down.

After that, for the second drop down list, you have used indirect function & refer to the value in product cell.

If you notice, our size named ranges has name equals to the values we have in product drop down.

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

RelatedDynamic Drop Down List in Excel

Three Level Dependent Drop Down List

In above example, you have created a two level dependent drop down list. But sometimes, we need to create a list with three level dependency.

For this, all you have to do, create a third drop down list which is dependent on the selection of the second drop down list.

Lets say if we want to add a drop down list with Length x Width of the sizes for paper sheets.

Drop-down list 2 dependent dropdown lists

And, for this, you have to create a third drop down list which 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.
Drop-down list 2 dependent dropdown lists
  • Select the cell where you want to insert your third drop down.
  • Open drop down options & insert the following formula in the source.
=Indirect(C5)
Drop-down list 2 dependent dropdown lists
  • Click OK.

Now, your three level drop down list is ready

Drop-down list 2 dependent dropdown lists

You can download this sample file from here to learn more.

Conclusion

A dependent drop down list is really a useful tool. And, Its easy to create it. I still remember the first time when I used it in an invoice template.

As @Wadie Seruge asked, you can create n number of dependent drop down lists. But, it will become complex with increasing numbers.

I hope this tip with help you get better at Excel.

Drop-down list 2 dependent dropdown lists

Now tell me one thing. Have you used a dependent drop down list? Please share your views with me in the comment section, I would love to hear from you.

And, please dont forget to share this tip with your friends.

Share0
Tweet0

About the Author

Drop-down list 2 dependent dropdown lists

Puneet is using Excel since his college days. He helped thousands of people to understand the power of the spreadsheets and learn Microsoft Excel. You can find him online, tweeting about Excel, on a running track, or sometimes hiking up a mountain.

Learn Excel (Videos)
Connect with Puneet