This incorporates all of the above requirements.
| A | B | C | D | E | F | G | H |
---|
| | | | | | | | |
Bee | a | a | | | | | | |
Cee | b | b | | | | | | |
| | | | | | | | |
DRS | EricW | | | | | | | |
Hybrid | Bee | Cee | Yield | Rank of Yield | Rank of Yield | | | |
a | | | | | | | | |
b | | | | | | | | |
b | | | | | | | | |
a | | | | | | | | |
b | | | | | | | | |
a | | | | | | | | |
a | | | | | | | | |
b | | | | | | | | |
b | | | | | | | | |
b | | | | | | | | |
a | | | | | | | | |
<colgroup><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="bgcolor: #FCE4D6"]Criteria to rank yield[/TD]
[TD="bgcolor: #FCE4D6, align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FFF2CC"]Average yield[/TD]
[TD="bgcolor: #FFF2CC, align: right"][/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #FFF2CC"]Average yield w/ Criteria[/TD]
[TD="align: right"][/TD]
[TD="align: center"]2[/TD]
[TD="bgcolor: #FCE4D6, align: right"]9[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6E0B4, align: right"] 9,120.0 [/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6E0B4, align: right"] 8,200.0 [/TD]
[TD="align: center"]3[/TD]
[TD="bgcolor: #FCE4D6, align: right"]97[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6E0B4, align: right"] 8,166.7 [/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C6E0B4, align: right"] 6,666.7 [/TD]
[TD="align: center"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]6[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]7[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]97[/TD]
[TD="align: right"] 8,200 [/TD]
[TD="bgcolor: #E2EFDA, align: right"]2[/TD]
[TD="bgcolor: #D9E1F2, align: right"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]8[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]95[/TD]
[TD="align: right"] 7,000 [/TD]
[TD="bgcolor: #E2EFDA"][/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]9[/TD]
[TD="align: right"]11[/TD]
[TD="align: right"]92[/TD]
[TD="align: right"] 12,000 [/TD]
[TD="bgcolor: #E2EFDA"][/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]10[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]102[/TD]
[TD="align: right"] 6,800 [/TD]
[TD="bgcolor: #E2EFDA"][/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]11[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]104[/TD]
[TD="align: right"] 4,000 [/TD]
[TD="bgcolor: #E2EFDA, align: right"]4[/TD]
[TD="bgcolor: #D9E1F2, align: right"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]12[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]106[/TD]
[TD="align: right"] 14,000 [/TD]
[TD="bgcolor: #E2EFDA"][/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]13[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]93[/TD]
[TD="align: right"] 6,600 [/TD]
[TD="bgcolor: #E2EFDA"][/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]14[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]99[/TD]
[TD="align: right"] 5,000 [/TD]
[TD="bgcolor: #E2EFDA, align: right"]3[/TD]
[TD="bgcolor: #D9E1F2, align: right"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]15[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]106[/TD]
[TD="align: right"] 11,000 [/TD]
[TD="bgcolor: #E2EFDA, align: right"]1[/TD]
[TD="bgcolor: #D9E1F2, align: right"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]16[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]103[/TD]
[TD="align: right"] 10,000 [/TD]
[TD="bgcolor: #E2EFDA"][/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]17[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]95[/TD]
[TD="align: right"] 10,000 [/TD]
[TD="bgcolor: #E2EFDA"][/TD]
[TD="bgcolor: #D9E1F2"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
</tbody>
rankif
[TABLE="width: 85%"]
<tbody>[TR]
[TD]
Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E2[/TH]
[TD="align: left"]=AVERAGEIFS(
$D$7:$D$17,$A$7:$A$17,D2)[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E3[/TH]
[TD="align: left"]=AVERAGEIFS(
$D$7:$D$17,$A$7:$A$17,D3)[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]H2[/TH]
[TD="align: left"]=AVERAGEIFS(
$D$7:$D$17,$A$7:$A$17,G2,$B$7:$B$17,">="&$B$2,$C$7:$C$17,">="&$B$3)[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]H3[/TH]
[TD="align: left"]=AVERAGEIFS(
$D$7:$D$17,$A$7:$A$17,G3,$B$7:$B$17,">="&$B$2,$C$7:$C$17,">="&$B$3)[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E7[/TH]
[TD="align: left"]=IF(
AND(B7>=$B$2,C7>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D7 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E8[/TH]
[TD="align: left"]=IF(
AND(B8>=$B$2,C8>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D8 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E9[/TH]
[TD="align: left"]=IF(
AND(B9>=$B$2,C9>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D9 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E10[/TH]
[TD="align: left"]=IF(
AND(B10>=$B$2,C10>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D10 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E11[/TH]
[TD="align: left"]=IF(
AND(B11>=$B$2,C11>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D11 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E12[/TH]
[TD="align: left"]=IF(
AND(B12>=$B$2,C12>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D12 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E13[/TH]
[TD="align: left"]=IF(
AND(B13>=$B$2,C13>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D13 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E14[/TH]
[TD="align: left"]=IF(
AND(B14>=$B$2,C14>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D14 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E15[/TH]
[TD="align: left"]=IF(
AND(B15>=$B$2,C15>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D15 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E16[/TH]
[TD="align: left"]=IF(
AND(B16>=$B$2,C16>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D16 < D$7:D$17))+1,"")[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]E17[/TH]
[TD="align: left"]=IF(
AND(B17>=$B$2,C17>=$B$3),SUMPRODUCT(--($B$7:$B$17>=$B$2),--($C$7:$C$17>=$B$3),--(D17 < D$7:D$17))+1,"")[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 85%"]
<tbody>[TR]
[TD]
Array Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F7[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B7>=$B$2,C7>=$B$3),IF(D7<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F8[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B8>=$B$2,C8>=$B$3),IF(D8<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F9[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B9>=$B$2,C9>=$B$3),IF(D9<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F10[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B10>=$B$2,C10>=$B$3),IF(D10<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F11[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B11>=$B$2,C11>=$B$3),IF(D11<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F12[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B12>=$B$2,C12>=$B$3),IF(D12<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F13[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B13>=$B$2,C13>=$B$3),IF(D13<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F14[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B14>=$B$2,C14>=$B$3),IF(D14<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F15[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B15>=$B$2,C15>=$B$3),IF(D15<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F16[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B16>=$B$2,C16>=$B$3),IF(D16<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
[TR]
[TH="width: 10, bgcolor: #DAE7F5"]F17[/TH]
[TD="align: left"]{=IFERROR(
1/(1/SUM(IF(AND(B17>=$B$2,C17>=$B$3),IF(D17<=IF(--($B$7:$B$17>=$B$2)*--($C$7:$C$17>=$B$3),$D$7:$D$17,-1),1),0))),"")}[/TD]
[/TR]
</tbody>[/TABLE]
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself[/TD]
[/TR]
</tbody>[/TABLE]