Hi,
I would like to return multiple answers from a drop-down list where two or more possibilities exist
Data and drop-down are on two different sheets
All help greatly appreciated
Kevin
Hi,
I would like to return multiple answers from a drop-down list where two or more possibilities exist
Data and drop-down are on two different sheets
All help greatly appreciated
Kevin
In Cell C2 of Sheet2 use
=IF(ROWS(A$1:A1)>COUNTIF(Sheet1!$A:$A,$B$2),"",INDEX(Sheet1!$B:$B,SMALL(INDEX((Sheet1!$A:$A=$B$2)*(ROW(Sheet1!$A:$A)-ROW($A$1)+1),),COUNTIF(Sheet1!$A:$A,"<>"&$B$2)+ROWS(A$1:A1))))
Copy down
Life's a spreadsheet, Excel!
Say thanks, Click *
In C2:
=IFERROR(INDEX(Sheet1!B:B,SMALL(IF(Sheet1!$A$1:$A$100=$B$2,ROW($A$1:$A$100)),ROWS($A$1:A1))),"")
... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Once confirmed, drag copy down.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
Thank you, both work perfectly!
Happy New Year to you both and the rest of the forum!
Kevin
or (non-array):
=IFERROR(INDEX(Sheet1!$B:$B,AGGREGATE(15,6,ROW(Sheet1!$A$1:$A$6)/(Sheet1!$A$1:$A$6=$B$2),ROWS($1:1))),"")
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
You're welcome - happy New Year to you, too!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks