Conditional Data Validation

swhitney

New Member
Joined
Mar 11, 2016
Messages
1
Hello,

I am trying to set up some conditional data validation for a questionnaire type template. Each question will have an Index number and the various allowable answers will be on a separate tab.

Previously, I have set up a similar data validation with the following format and calculation:
=OFFSET(QuestionIDStart,MATCH(A1,QuestionIDColumn,0)-1,1,COUNTIF(QuestionIDColumn,A1),1)

Question ID
Answer
CO-01
Yes
CO-01
No
CO-02
500
CO-02
1000
CO-02
15000

<tbody>
</tbody>

While this method works, if the Question ID column is not properly sorted it can return unexpected results. I also just plain don't like the appearance for how I plan on using it.

I have been playing around with having the answers stored in the following format but I am struggling with getting data validation to find the right row and return only the non-blank values.
Question ID
Answer 1
Answer 2
Answer 3
CO-01
Yes
No
CO-02
500
1000
1500

<tbody>
</tbody>

Any suggestions on how the data validation formula should be set up?

Thanks!!
 

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.

Forum statistics

Threads
1,215,007
Messages
6,122,670
Members
449,091
Latest member
peppernaut

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