RANK.EQ Not Returning Without Duplicate References

ejackson37

New Member
Joined
Jan 30, 2023
Messages
10
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I am trying to rank teams in a table for a charity sports event.

I want to rank by:
1. Points (PTS)
2. Goal Difference (GD)
3. Goals Scored (GS)
4. If all are tied, revert to Alphabetical order.

However the formula I have put in, does not return the Alphabetical order.

=RANK.EQ([@PTS],[PTS])+COUNTIFS([PTS],[@PTS],[GD],">"&[@GD])+COUNTIFS([GD],[@GD],[GS],">"&[@GS]+COUNTIFS([Team],"<="&[@Team]))

Where the black team and blue team have drawn 1-1 (testing the formula) it returns them both as Rank 2 however I want black to return as 2 and blue as 3.

The reason I'm using a table and Rank.EQ is because I want this to be live update as the event goes on.

Can anyone help please?

Thank you. You're a great community that has always solved issues I have had :)
 

Attachments

  • Table Rank Issue.png
    Table Rank Issue.png
    32.4 KB · Views: 4
If Table9 is just to get the sorted list, you could get rid of it & just use
Excel Formula:
=SORT(VSTACK('Player Stats'!B12:D31,'Player Stats'!H12:J31,'Player Stats'!N12:P31,'Player Stats'!T12:V31),{3,1},{-1,1})
 
Upvote 0

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Wow, that worked! Thank you so much. It blows my mind how fast you can resolve these problems.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,212
Messages
6,123,656
Members
449,114
Latest member
aides

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