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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
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,223,739
Messages
6,174,217
Members
452,551
Latest member
croud

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