Book1 | ||||||||
---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | |||
1 | ENTRY: | Color of Max | ||||||
2 | 2 | dog | red | bird | green | |||
3 | 1 | dog | blue | |||||
4 | 2 | Bird | green | |||||
5 | 1 | Bird | yellow | |||||
Sheet6 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
F2 | F2 | =INDEX($C$2:$C$5,MAX((ROW($A$2:$A$5)-1)*((($B$2:$B$5=E2)*($A$2:$A$5))=(MAXIFS($A$2:$A$5,$B$2:$B$5,E2))))) |
=TAKE(SORT(FILTER(A2:C100,B2:B100=E2),1,-1),1,-1)
=INDEX($C$2:$C$5,MATCH(TRUE,MAX((($B$2:$B$5=E2)*($A$2:$A$5))*($B$2:$B$5=E2))=(($B$2:$B$5=E2)*($A$2:$A$5))*($B$2:$B$5=E2),0))