Ranking formula

bluegold

Active Member
Joined
Jun 21, 2009
Messages
279
Ok so I've got a spreadsheet of league matches and I need a formula to determine whether the Home Team (ColA) is up or down the ladder in comparison to their Away team opponent (ColB) according to the data in columns AQ, AR, AS & AT.
ColAQ - Home team competition points
ColAR - Home team points scored - points conceded = points difference (To be used as a tiebreaker when both Home & Away teams are on equal competition points)
ColAS & AT are the same as above but relating to the Away team.
ColE - The table formula which I have filled out with the desired results.
Now you will see in columns AQ - AT that the spreadsheet begins with cell entries "nd" for the first 9 rows. This is because their is no previous data available The next lot of "nd" cell entries beginning on row 26 is when a new season has begun. The table formula must look for the last available data before it returns a "nd", in this instance it had previous data to still determine table position relative to the away team.

If two team's are on equal competitions points and equal points difference then the home team should be up by default.

If there are any questions don't hesitate to ask :)

Notes:
Using Excel 2007
nd = Acronym for "No Data" (Custom cell format)

ABEAQARASAT
1HomeAwayTable PositionHome Team PointsHome F&A DifferenceAway Team PointsAway F&A Difference
2southssydneyndndndndnd
3gcoastnqldndndndndnd
4newcastlecanberrandndndndnd
5parramattacanterburyndndndndnd
6manlycronullandndndndnd
7westssgeorgendndndndnd
8brisbanepenrithndndndndnd
9melbournenzealandndndndndnd
10southscanterburydown0-140-8
11sydneybrisbanedown214236
12newcastlemanlyup2160-6
13penrithcanberradown0-360-16
14nqldwestsdown0-1828
15nzealandparramattadown0-1428
16melbournecronullaup21426
17sgeorgegcoastdown0-8218
18brisbanenqldup4420-38
19parramattanewcastledown2-6417
20sydneymelbournedown28213
21canberrasgeorgedown2-12210
22gcoastcronulladown2047
23canterburywestsdown25428
24penrithsouthsdown0-400-27
25manlynzealanddown0-720
26canterburysydneyupndndndnd
27melbournebrisbanedownndndndnd
28nqldparramattadownndndndnd
29sgeorgecronulladownndndndnd
30gcoastcanberraupndndndnd
31nzealandnewcastledownndndndnd
32manlysouthsupndndndnd
33westspenrithupndndndnd

<tbody>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Just put a greater than ( > ) in your formula when comparing the two totals. Thus, the formula will favor one value when the two totals are equal, until one value is exceeded by the other.
Basically this, =If(competitionvalue>hometeamvalue,competitionvalue,hometeamvalue)
 
Upvote 0
Few questions

1. Do we need to consider only those matches played in the past between the 2 teams in the row? or should we consider any match played by each team?
2. Should we account only the matches where the home team was the same as home team in current row, or should we consider all matches including the away matches?
3. F&A difference - is it for the current match or a cumulative total?
 
Upvote 0
Hi Sankar,

To answer your questions.
1. Any match played by each team.
2. All matches including away matches.
3. Its a cumulative total for past results (does not include current row results)

Hope this helps :)
 
Upvote 0
Sanrv1f,

This is an updated spreadsheet with an extra column that I forgot to include that greatly helps identify when one season ends and another begins :)
So to hopefully better explain the expected formula.

If we take cell A2. As there is no previous data to work on a "nd" is displayed.

If you take A10 for example now there is previous matches to work on to determine whether the home team is up or down relative to the away team on the ladder. Both teams have 0 points but the away team has the better For & Against total (-8 versus -14) so the home team = down

If you now take A26 you will see its the beginning of a new season so this is where it gets a little tricky. There is no previous data for this current season but there is previous data from last season. So the formula should look for the last known points tally & For & Against totals to determine whether the home team is up or down relelative to the away team.

Once there is sufficient results tallied for the current season than the formula only works on the current season and doesn't look at previous season.

Am I asking too much ? lol

An easier way I suppose is to treat each season seperately and display a "nd" at the beginning of each season when no previous results are available to determine table position?



ABEAQARASATAU
1HomeAwayTable PositionHome Team PointsHome F&A DifferenceAway Team PointsAway F&A DifferenceSeason
2southssydneyndndndndnd1
3gcoastnqldndndndndnd1
4newcastlecanberrandndndndnd1
5parramattacanterburyndndndndnd1
6manlycronullandndndndnd1
7westssgeorgendndndndnd1
8brisbanepenrithndndndndnd1
9melbournenzealandndndndndnd1
10southscanterburydown0-140-81
11sydneybrisbanedown2142361
12newcastlemanlyup2160-61
13penrithcanberradown0-360-161
14nqldwestsdown0-18281
15nzealandparramattadown0-14281
16melbournecronullaup214261
17sgeorgegcoastdown0-82181
18brisbanenqldup4420-381
19parramattanewcastledown2-64171
20sydneymelbournedown282131
21canberrasgeorgedown2-122101
22gcoastcronulladown20471
23canterburywestsdown254281
24penrithsouthsdown0-400-271
25manlynzealanddown0-7201
26canterburysydneyupndndndnd2
27melbournebrisbanedownndndndnd2
28nqldparramattadownndndndnd2
29sgeorgecronulladownndndndnd2
30gcoastcanberraupndndndnd2
31nzealandnewcastledownndndndnd2
32manlysouthsupndndndnd2
33westspenrithupndndndnd2

<tbody>
</tbody>
 
Upvote 0
Sankar,

You haven't forgotten about me have you? Is there anything you don't understand?

Regards,
Pete
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

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