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

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

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