
Originally Posted by
CAntosh
We can alter the tie handling to split between the tied ranks by using a COUNTIFS denominator. The attached sample has been extended to include John's information. I changed the RANK formula back to your original formula, removing my tie-breaker, so in E2, array-entered, is:
=RANK.EQ(D2,INDEX($D$2:$D$18,SMALL(IF($A$2:$A$18=A2,ROW($D$2:$D$18)-ROW($D$2)+1),1)):INDEX($D$2:$D$18,LARGE(IF($A$2:$A$18=A2,ROW($D$2:$D$18)-ROW($D$2)+1),1)),1)
Then for the effort, in F2, array-entered, is:
=MAX(0,MIN(INDEX(LOE!$C$2:$C$11,MATCH(1,(LOE!$A$2:$A$11=$A2)*(LOE!$B$2:$B$11=$B2),0)),1-SUMIFS($F$2:$F$18,$A$2:$A$18,$A2,$E$2:$E$18,"<"&$E2)))/COUNTIFS($A$2:$A$18,$A2,$E$2:$E$18,$E2)
I believe this produces the results you're after. If it works in the sample but not your actual workbook, then start by double checking all of the ranges to make sure they've been translated correctly. If you're still getting incorrect results, then try posting a sample that's a better representation of how your real data is arranged so we can try to diagnose where the translation is failing.
Bookmarks