Data Validation using selective lookup data

DingDango

New Member
Joined
Jul 28, 2011
Messages
2
Hello, I have a situation where I have a named range of data that looks like this:
ColA ColB
Q1 Al
D1 Andrew
C3 Bob
T3 Fred
Z1 Joe
Q1 Ted
Column A is a classification and column B is the users name.
The list is sorted by column B so the names would show up alphabetically in the data validation list.
So far so good.

Now the part that is messing me up: I want to have a data validation dropdown specific to each classification.
For example, I want a data validation dropdown that displays from this list only the users with a C3 classification.
I want another data validation dropdown that displays from this list only the users with a D1 classification and so on for each classification.
If there are five classifications, I'll have five data validation dropdown lists.
The question is how do I create a formula that I can put in the data validation source field that will filter the named range that is the above list?

Thanks for your help!!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Smitty, I reviewed that but I don't have the luxury of having distinct lists of each classification as the list I described is dynamic and being updated every time the spreadsheet is opened. The update comes from a SQL database in the form I showed.

What I need is something akin to a vlookup that would pull out of the list just the users that had a specific classification.

Thanks
 
Upvote 0
You'll probably have to use VBA. Off the top of my head, maybe apply Data Filter to create each list, then copy just the visible cells to what can be a static location, which you can then use for the validation.
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

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