ranks

abee4life

Active Member
Joined
Jan 27, 2005
Messages
319
By using either rank or vlookup, how can i do a table that calculates in order

* Points
* Goal Difference
* Goals Scored
* Alphabetical Order

I can do 1 for points, then goal difference, and 1 for points and goal scored, but cant do one for all of them together.

I can send the table to anyone who wants it!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I am not sure what you are trying to do. It doesn't sound like you want to sort but I don't know what you mean by not being able to rank these.
Could you post the data (using colo's HTML maker) and explain a little more about what you want.
 
Upvote 0
ive tried using the html maker before with no success...

basically i want to make a league table for games in League 1 of the English football(soccer) league.

The way the league goes about sorting teams is

Highest Points, then if level, goal difference, then still level, goals scored, then finally alphabetical order.
 
Upvote 0
Upvote 0
Thanks for all your help dandyrandy... can you please help me out this one last time and explain how to continue the fixtures down?
 
Upvote 0
Assumptions:

A1:I6 contains your table

First row contains your headers

Column A contains 'Team Name'

Column F contains 'Goal Scored'

Colum H contains 'Goal Difference'

Column I contains 'Points'


Formulas:

K2, copied down:

=RANK(I2,$I$2:$I$6)

L2, copied down:

=IF(COUNTIF($I$2:$I$6,I2)>1,MATCH(H2,LARGE(IF($I$2:$I$6=I2,$H$2:$H$6),ROW(INDIRECT("1:"&COUNTIF($I$2:$I$6,I2)))),0)-1,0)

...confirmed with CONTROL+SHIFT+ENTER

M2, copied down:

=IF(SUM(($I$2:$I$6=I2)*($H$2:$H$6=H2))>1,MATCH(F2,LARGE(IF(($I$2:$I$6=I2)*($H$2:$H$6=H2),$F$2:$F$6),ROW(INDIRECT("1:"&SUM(($I$2:$I$6=I2)*($H$2:$H$6=H2))))),0)-1,0)

...confirmed with CONTROL+SHIFT+ENTER

N2, copied down:

=IF(SUM(($I$2:$I$6=I2)*($H$2:$H$6=H2)*($F$2:$F$6=F2))>1,MATCH(COUNTIF($A$2:$A$6,"<"&A2),SMALL(IF(($I$2:$I$6=I2)*($H$2:$H$6=H2)*($F$2:$F$6=F2),COUNTIF($A$2:$A$6,"<"&$A$2:$A$6)),ROW(INDIRECT("1:"&SUM(($I$2:$I$6=I2)*($H$2:$H$6=H2)*($F$2:$F$6=F2))))),0)-1,0)

...confirmed with CONTROL+SHIFT+ENTER

O2, copied down:

=SUM(K2:N2)


Note that Column O gives you the final ranking. Adjust the ranges accordingly.


Hope this helps!
 
Upvote 0
assuming you have a table setup as previously suggested in an earlier post
with headers like

Team | Played | Won | Drawn | Lost | For | Against | Points

In the ranking column put the following, substitute names for actual cell locations and copy down.

=points+((For-Against)/100)+(For/10000)+((100-CODE(Team))/1000000)

and rank these values
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

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