Sorting a Soccer PointsTable
Can this method adapted for a third criterior " Goals for"
In soccer it is sorted by POINTS -- Goal Different --- Goal for.
I used the formula below however when the teams have the sames point
and goal different BUT one has a greater Goals For. The teams are
tied.
I used the formula below
=D2+E2/10^2+COUNTIF($A$2:$A$6,""&A2)/10^4
then from the answer in column F
Column C is the " Goals for"
=F2+C2/10^2+COUNTIF($A$2:$A$6,""&A2)/10^4 BUT
this doubles the decimal part in column in some cases.
Help?
On Mon, 30 Oct 2006 07:58:37 -0500, Domenic
wrote:
Here are two different approaches. The first one uses several formulas,
whereas the second uses only one. However, the first approach is more
efficient than the second.
Assumptions:
A2:E6 contains the data
Column A contains the Team
Column D contains the Goal Difference
Column E contains the Points
[Option 1]
F2, copied down:
=D2+E2/10^2+COUNTIF($A$2:$A$6,""&A2)/10^4
G2, copied down:
=IF(N(F2),RANK(F2,$F$2:$F$6),"")
H1:
=MAX(G2:G6)
I2, copied down and across:
=IF(ROWS(I$2:I2)<=$H$1,INDEX(A$2:A$6,MATCH(ROWS(I $2:I2),$G$2:$G$6,0)),"")
[Option 2]
I2, copied down and across:
=INDEX(A$2:A$6,MATCH(LARGE($D$2:$D$6+$E$2:$E$6/10^2+COUNTIF($A$2:$A$6,""
&$A$2:$A$6)/10^4,ROWS(I$2:I2)),$D$2:$D$6+$E$2:$E$6/10^2+COUNTIF($A$2:$A$6
,""&$A$2:$A$6)/10^4,0))
Note that this formula needs to be confirmed with CONTROL+SHIFT+ENTER,
not just ENTER.
Hope this helps!
In article ,
Max wrote:
Hello All,
In am in need of some help please.
I am trying to sort a Soccer table.
I have used the Functions of Rank and Large to sort the ranking according to
Goal difference and Points for the teams.
The problem is, I need to display the Teams names, instead of a number that
I get from the Rank and Large functions at the end, as well as if the teams
are equal with Goal difference (GD) and Points (Pts) ranking them
alphabetically.
If you have an easier and better idea to do the sort, please let me know.
I am trying to keep the sort process as short as possible.
I have found a very lengthly solution, but using Rank and Large I am able to
get close to the ideal result, so I thought about asking the Experts for
help, to get the final result.
I have not attached the table but I will send it to who ever is willing to
help.
Thank you and best regards
Max
|