Rank by Group with Tiebreaker

BradH

New Member
Joined
Jan 25, 2010
Messages
44
I have searched a ton of posts to find this answer and have not been able to find the scenario that matches mine and works.

I want to sort as follows: (There are 300+ Teams in 35+ Divisions)

TeamDivisionDiv Win %All Win %Rank
A1-5A1.000.7501
B1-5A.500.8003
C2-5A.500.5001
D1-5A1.000.6002

<tbody>
</tbody>

Div Win % is the #1 Rank factor, Overall Win % is the tiebreaker. If both are tied, then first match gets the spot.

I will be using this table to index/match the rank to build the standings, so there cannot be any ties.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
ABCDE
1
Team
Division
Div Win %
All Win %
Rank
2
A​
1-5A​
1​
0.75​
1​
3
B​
1-5A​
0.5​
0.8​
3​
4
C​
2-5A​
0.5​
0.5​
1​
5
D​
1-5A​
1​
0.6​
2​

<tbody>
</tbody>

<tbody>
</tbody>


Worksheet Formulas
CellFormula
E2=SUMPRODUCT(($B$2:$B$5=B2)*(($C$2:$C$5+$D$2:$D$5/100)>=C2+D2/100))

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
AlphaFrog, this works perfect unless C & D are both the same for multiple teams within a group. (Think beginning of season, nobody has any games played yet) In that case, the first to tie should get the spot, 2nd +1 etc.

This worked perfect on last seasons data, but I could not find any ties with both criteria.
 
Upvote 0
Row is a tie breaker
=SUMPRODUCT(($B$2:$B$5=B2)*(($C$2:$C$5+$D$2:$D$5/100-ROW($D$2:$D$5)/100000)>=C2+D2/100-ROW()/100000))
 
Last edited:
Upvote 0
Or try:

=COUNTIFS($B$2:$B$5,B2,$C$2:$C$5,">"&C2)+COUNTIFS($B$2:$B$5,B2,$C$2:$C$5,C2,$D$2:$D$5,">"&D2)+1
 
Upvote 0
Row is a tie breaker
=SUMPRODUCT(($B$2:$B$5=B2)*(($C$2:$C$5+$D$2:$D$5/100-ROW($D$2:$D$5)/100000)>=C2+D2/100-ROW()/100000))

Alpha,

This worked better, but it still has a flaw. Hopefully sharing sheets is allowed, I tried the two links on your profile and neither worked.

https://drive.google.com/open?id=1kGVSylt5goIUX6IJGTQmqCIasv87tCfx

I've filtered District 1-B. Only one team has won a District game and it properly ranks this team #1 . However, Weston should be ranked #2 because they have an overall Win % of 1.000 and Doyline should be #3 because they are only .750.

Oddly enough, if I sorted the entire sheet by District and then Opponent, it ranks correctly. Even though on Filter, they are in the same order...just not together. This is actually an acceptable workaround, but it would be better if I didn't have to do this sort.

Thanks for your help with this!
 
Upvote 0
This seemed to work...
=SUMPRODUCT(($B$2:$B$381=B2)*(($C$2:$C$381+$D$2:$D$381/100-ROW($D$2:$D$381)/1000000)>=C2+D2/100-ROW()/1000000))
 
Upvote 0

Forum statistics

Threads
1,215,753
Messages
6,126,677
Members
449,327
Latest member
John4520

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