Re: Sorting a Soccer PointsTable
- From: Max <Max@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Oct 2006 05:29:01 -0800
Hello Domenic,
How do I attach an Excel spreadsheet, I will send it to you. May be this
will help.
For some or other reason I am missing it with the formulas you sent me.
I still get numbers, I need to be able to display the team names according
to the three ranking criteria.
Thank you for your help.
Max
"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 <7F1EACCD-5B1C-4014-80DF-885B63E5AA9A@xxxxxxxxxxxxx>,
Max <Max@xxxxxxxxxxxxxxxxxxxxxxxxx> 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
- Follow-Ups:
- Re: Sorting a Soccer PointsTable
- From: Domenic
- Re: Sorting a Soccer PointsTable
- References:
- Re: Sorting a Soccer PointsTable
- From: Domenic
- Re: Sorting a Soccer PointsTable
- Prev by Date: Re: Counting Unique Values
- Next by Date: Link
- Previous by thread: Re: Sorting a Soccer PointsTable
- Next by thread: Re: Sorting a Soccer PointsTable
- Index(es):
Relevant Pages
|