Index with Drop Down

bmlaw

New Member
Joined
Sep 3, 2013
Messages
3
Hello,

I am trying to create a drop down list of ZIP codes and then, depending on whether someone says "yes" or "no" to a question, make a recommendation as to the best organization to contact. This recommendation would change based on the ZIP code.

I have the drop down list set up and have a column for "yes" and one for "no" (the user would check a box, not enter text).

This is my array code for the referral so far:
{=IF(ISERROR(INDEX(Worksheet!$T$1:$S$44,SMALL(IF(Worksheet!$S$1:$S$44=Worksheet!$W$1,ROW(Worksheet!$S$1:$S$44)),ROW(Worksheet!2:2)),2)),"",INDEX(Worksheet!$S$1:$T$44,SMALL(IF(Worksheet!$S$1:$S$44=Worksheet!$W$1,ROW(Worksheet!$S$1:$S$44)),ROW(Worksheet!2:2)),2))}

Column S is the "No" check box and T is the referral.

It works just fine for generating a referral based on yes/no.

How do I incorporate the drop down list information into this code so that the referral organization will change based on the ZIP information?
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi bmlaw,
Since you did not show how it would look. So, I am taking a guess as to how this would look like. I am assuming the recommendation would be specific to a zip code and no/yes combination. For my simple example I have a, b, and c. with no or yes. Therefore, I would would have 6 specific recommendations. So I have come up with this. I used data validation to select for a specific criteria. Hope this helps.
Mike Szczesny


Excel 2012
ABCDEFG
1CodesQuestionRecommendationNoa
2aYesGo HomeGo ThereYesb
3aNoGo Fishc
4bYesGo Crazy
5bNoGo There
6cYesGo Here
7cNoGo Somewhere
8
9bNo
Sheet1
Cell Formulas
RangeFormula
D2{=INDEX($C$2:$C$7,SMALL(IF($A$2:$A$7&$B$2:$B$7=$A$9&$B$9,ROW($C$2:$C$7)-ROW($C$2)+1),1))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,678
Members
449,179
Latest member
fcarfagna

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