Dependent Drop-Down in columns

mark hansen

Well-known Member
Joined
Mar 6, 2006
Messages
534
Office Version
  1. 2016
Platform
  1. Windows
I have set this up numerous times by searching for Dependent Drop-down list and following the instructions. This works well when using only two cells, one for the category, and one for the items in the category.

I'm having a hard time translating that when I want the category in column D and the items in the that Category in Column E. The category column (D) I can use a standard drop-down, but in the cell next to that, I don't know what to use for Data Validation.

We are on Excel 2010 and the category names have spaces in them.

Any help is appreciated.

Mark
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Assuming you have data like this:


Book1
CDEFGHIJKL
1CategoryItems
2FruitVeggiesCarrotPotatoCauliflowerCabbage
3FruitAppleGrapesBananaStrawberry
4
5
6
7
Sheet3


In Column D you can use standard data validation and in Column E you can use this in Data validation after selecting List option in Data Validation:

Code:
=INDEX($H$2:$K$3,MATCH(D2,$G$2:$G$3,0),0)
 
Upvote 0
Thanks for your quick reply Nishant!!! This works great. It looks like the "D2" in your formula is relative to the row you are on and when you start your data validation in E2, it looks on the same row, all the way down. I knew conditional formatting works like that, I didn't know Data Validation did that too.

You not only answered my question, but taught me a valuable concept.

Thanks Again!
Mark
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,843
Members
449,051
Latest member
excelquestion515

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top