Data Validation List Based on Meeting Criteria in Adjacent Cell

mharper90

Board Regular
Joined
May 28, 2013
Messages
117
Office Version
  1. 365
Platform
  1. MacOS
I am trying to make a data validation list on Sheet1 that references all non-blank items in column A on Sheet2. I have accomplished this pretty easily (although, is there a way to exclude the header without just selecting a long range like "A2:A5000"?).

Now, I want to trim that list to only display those values if they ALSO have the text "Blue" in column B. This will eventually expand to include other colors of cardstock as items are added to the list, but each data validation list will only need to display list items associated with a single color. I will copy, paste, and modify this process to the other data validation cells as needed for different colors.

I have seen many examples of multi-level drop down lists, such as Fruit->Grape, but those examples don't seem to reference an adjacent cell, they seem to reference the title of the list.

SEARCH BARCARDSTOCK COLOR
Analytical Instrument ChecksBlue
Aux Boiler SteamBlue
BLANKBlue
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
This is a bit "Heath Robinson", but it does what you require
Book1
BCDEFGHI
2SEARCH BARCARDSTOCK COLOR
3Analytical Instrument ChecksBlueAnalytical Instrument ChecksAux Boiler Steam
4Aux Boiler SteamBlueAux Boiler Steam
5Blue
6Analytical Instrument ChecksGreen
7Aux Boiler SteamGreen
8Green
9
Sheet1
Cell Formulas
RangeFormula
E3:E4E3=FILTER(Sheet1!$B$3:$B$8,((Sheet1!$B$3:$B$8<>"")*(Sheet1!$C$3:$C$8="Blue")))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
H3List=$E$3#


I am sure there is a better way
 
Upvote 0
This is exactly what I've struggled with today. It seems the DV dialog box doesn't recognise dynamic arrays automatically - when selecting the cells I had to add the # symbol myself.

Thanks for the solution Skybluekid
 
Upvote 0
This is a bit "Heath Robinson", but it does what you require
Book1
BCDEFGHI
2SEARCH BARCARDSTOCK COLOR
3Analytical Instrument ChecksBlueAnalytical Instrument ChecksAux Boiler Steam
4Aux Boiler SteamBlueAux Boiler Steam
5Blue
6Analytical Instrument ChecksGreen
7Aux Boiler SteamGreen
8Green
9
Sheet1
Cell Formulas
RangeFormula
E3:E4E3=FILTER(Sheet1!$B$3:$B$8,((Sheet1!$B$3:$B$8<>"")*(Sheet1!$C$3:$C$8="Blue")))
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
H3List=$E$3#


I am sure there is a better way
Thanks. This is an option I stumbled upon shortly after posting my initial question. It works, but I'd love a way to skip the middle cell and put the array formula right into the data validation cell. Perhaps it's not possible.
 
Upvote 0

Forum statistics

Threads
1,215,737
Messages
6,126,577
Members
449,318
Latest member
Son Raphon

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