How to return the values from a list while ignoring blanks?

stlpony

New Member
Joined
Mar 8, 2018
Messages
39
Hello!

Have a question ... Here is my table
Christmas
EggNog
ChristmasSpaghetti
ChristmasMeatballs
ThanksgivingTurkey
ThanksgivingMashedPotatoes
Holiday?Options?
Thanksgiving
=IFERROR(INDEX($A$1:$B$5,MATCH(ROW()-ROW($A$8),$A$1:$A$5,0)),"")

<tbody>
</tbody>

<tbody>
</tbody>


I'm trying to make a simple survey ... If cell A8=Thanksgiving, I would like "Turkey" listed in cell B8, and Mashed Potatoes listed in B9. Thought I had the formula correct, but appears not ... Any idea??
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try


Excel 2013/2016
AB
1ChristmasEggNog
2ChristmasSpaghetti
3ChristmasMeatballs
4ThanksgivingTurkey
5ThanksgivingMashedPotatoes
6
7Holiday?Options?
8ThanksgivingTurkey
9MashedPotatoes
Offer Received
Cell Formulas
RangeFormula
B8=IFERROR(INDEX($B$1:$B$5,AGGREGATE(15,6,(ROW($B$1:$B$5)-ROW($B$1)+1)/($A$1:$A$5=$A$8),ROWS($1:1))),"")
 
Upvote 0
This is great! Now expanding this a little ... (I'm actually trying to create a dinner survey)...
 
Upvote 0
HolidayFirst CourseSecond Course
ChristmasEggNogCookies
ChristmasEggNogMilk
ChristmasSpaghettiBread
ChristmasSpaghettiSalad
ChristmasMeatballsSauce
ThanksgivingTurkeyCorn
ThanksgivingTurkeyVeggies
ThanksgivingMashedPotatoesGravy
ThanksgivingMashedPotatoesStuffing
Which Holiday?First Course Options?Second Course Options?
ChristmasEggNogCookies
EggNogMilk
Spaghetti
=IFERROR(INDEX($C$2:$C$10,AGGREGATE(15,6,(ROW($C$2:$C$10)-ROW($C$2)+1)/($B$2:$B$10=$B15),ROWS($2:4))),"")

<tbody>
</tbody>
Spaghetti
=IFERROR(INDEX($C$2:$C$10,AGGREGATE(15,6,(ROW($C$2:$C$10)-ROW($C$2)+1)/($B$2:$B$10=$B15),ROWS($2:4))),"")

<tbody>
</tbody>
Meatballs
=IFERROR(INDEX($C$2:$C$10,AGGREGATE(15,6,(ROW($C$2:$C$10)-ROW($C$2)+1)/($B$2:$B$10=$B15),ROWS($2:4))),"")

<tbody>
</tbody>
Dropdown #1 Dopdown #2 Dopdown #3

<tbody>
</tbody>



So, I'm trying to design a survey, by which DropDown #1 will show the holiday (either Christmas or Thanksgiving). If Christmas is selected, dropdown #2 will have EggNog, Spaghetti, or Meatballs. Depending on what is picked in #2 , the third option will show what is left based on the database up top.

Questions:
1) How do I make a dropdown that only shows the unique values in cells B13:B17?
2) My formula in Column C is not working ... If Spaghetti is selected, I want the options to show Bread or Salad ... So how do I add this third question / layer to my formula?

Thanks!
 
Upvote 0
This is now a completely different question, so you will need to start a new thread.
 
Upvote 0

Forum statistics

Threads
1,215,564
Messages
6,125,581
Members
449,237
Latest member
Chase S

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