Multiple criteria index/small

peterpaul

New Member
Joined
Jun 2, 2021
Messages
7
Office Version
  1. 2019
Hi everyone,

I have made a little example to explain my question. I would like to get the scores from names A and B. That part is working in my example, but I would like to add 2 more criteria's. I would like to get the scores of names A and B but the score can't contain 5 and the factor should be bigger than 0. Is this possible? If so, how do I had these 2 new criteria's?

excel.xlsx
ABCDEFG
1NameScoreFactorCriteria
2A11A1
3B20B2
4C3155
5C416
6A518
7B61#GETAL!
8C71#GETAL!
9A81#GETAL!
Blad1
Cell Formulas
RangeFormula
G2:G9G2=INDEX($B$2:$B$9,SMALL(IF((($E$2=$A$2:$A$9)+($E$3=$A$2:$A$9))>0, ROW($A$2:$A$9)-ROW($A$2)+1),ROWS(E$2:E2)))
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi & welcome to MrExcel.
How about
+Fluff 1.xlsm
ABCDEFG
1NameScoreFactorCriteria
2A11A1
3B20B6
4C3158
5C41#NUM!
6A51#NUM!
7B61#NUM!
8C71#NUM!
9A81#NUM!
10
Main
Cell Formulas
RangeFormula
G2:G9G2=INDEX($B$2:$B$9,AGGREGATE(15,6,(ROW($A$2:$A$9)-ROW($A$2)+1)/((($A$2:$A$9=$E$2)+($A$2:$A$9=$E$3))>0)/($B$2:$B$9<>$E$4)/($C$2:$C$9>0),ROWS(E$2:E2)))
 
Upvote 0
Solution
It works like a charm thank you very much. I have one question left. Is it possible that the formula doesn't produce any duplicates? So when I have an A with score 6 and a B with score 6 the formula only outputs 6 once? So with other words that all outcomes are unique.
 
Upvote 0
How about
Excel Formula:
=INDEX($B$2:$B$9,AGGREGATE(15,6,(ROW($A$2:$A$9)-ROW($A$2)+1)/((($A$2:$A$9=$E$2)+($A$2:$A$9=$E$3))>0)/($B$2:$B$9<>$E$4)/($C$2:$C$9>0)/(ISNA(MATCH($B$2:$B$9,G$1:G1,0))),1))
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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