Data Validation

gberg

Board Regular
Joined
Jul 16, 2014
Messages
205
Office Version
  1. 365
Platform
  1. Windows
I'm trying to get a data validation list that will list 5 options based on the Item Value

The following example has "Item 1" and "Item 2" and the validation options for these items

I want to set data validation for cells B7 and B8 so that the options are per the list above

ABCDEF
1ItemOption 1Option 2Option 3Option 4Option 5
2Item 1aaabbbcccdddeee
3Item 2
111​
222​
333​
444​
555​
4
5
6ItemOption
7Item 1
8Item 2

Thanks

Greg
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Greg, will youi only be putting data in row 7 and 8?
Or are you going to pull the formula/validaiton down more rows and input Item 1 or Item 2 at randome in column A of those rows?
 
Upvote 0
Both the items with options and the list where I want the data validations will have a lot more rows
 
Upvote 0
try this:
Book1
ABCDEF
1ItemOption 1Option 2Option 3Option 4Option 5
2Item 1aaabbbcccdddeee
3Item 2111222333444555
4
5
6ItemOption
7Item 1=SWITCH(A7,$A$2,$B$2:$F$2,$A$3,$B$2:$F$3)
8Item 2
9
10
Sheet2
Cells with Data Validation
CellAllowCriteria
B7List=SWITCH(A7,$A$2,$B$2:$F$2,$A$3,$B$3:$F$3)
 
Upvote 0
How would you write that if these were tables Table1 would be the list with the options and Table2 would be where the validation goes?
 
Upvote 0
How would you write that if these were tables Table1 would be the list with the options and Table2 would be where the validation goes?wEL
What happened when you tried to put it in the columns of the table?
 
Upvote 0
I guess it works! I was trying to get the table references in but your formula works just as is! Thanks for your help
 
Upvote 0
i'm not very good with referencing individual cells in tables. i'm glad that works for you. I'm not entirely sure it will work consistently though.
Best Wishes!
 
Upvote 0
Sorry, this does not work. I will have many more items to reference and this only handles two
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,210
Members
453,023
Latest member
alabaz

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