+ Reply to Thread
Results 1 to 5 of 5

Amend ranking formula for sports results

  1. #1
    Registered User
    Join Date
    04-06-2007
    Location
    Glasgow, Scotland
    MS-Off Ver
    2003 / 2007
    Posts
    83

    Amend ranking formula for sports results

    I am attempting to upgrade a scoring system in excel 2003 which I use to rank wins in a sports results grid and I am seeking help to amend a formula based on a new version.
    The current formula in the attached part-completed worksheet Draw9 of 1 to 9, which I wish to amend, is in cells AM42:53 one of which is:

    =IF(AL44="","",RANK(AL44,AL44:AL53)&CHOOSE(AND(RANK(AL44,AL44:AL53)<>{11,12,13})*MIN(4,MOD(RANK(AL44,AL44:AL53),10))+1,"th","st","nd","rd","th"))

    I have now added an extra column of data in cell AN44:53 under “LSD” and I would like to use this to improve the accuracy of the original ranking. In other words I wish to Rank teams using the “Wins” in column AL42:53 plus the “LSD” data in columns AN44:53 and this will ensure that where teams are tied on the same number of wins then the numbers in the “LSD” column will enable a clear ranking i.e. say 3 teams on 3 wins ranked 6th = will now be ranked 6th,7th & 8th.

    I do hope I have explained it fully and any help would be greatly appreciated.
    Attached Files Attached Files
    Last edited by alan_stephen75@; 10-15-2009 at 06:22 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787

    Re: Amend ranking formula for sports results

    What's better, high LSD?

    If so you can try this formula in row 44 copied down

    =IF(AL44="","",RANK(AL44,AL$44:AL$53)+SUMPRODUCT((AL$44:AL$53=AL44)*(AN$44:AN$53>AN44))&LOOKUP(RANK(AL44,AL$44:AL$53)+SUMPRODUCT((AL$44:AL$53=AL44)*(AN$44:AN$53>AN44)),{1,2,3,4;"st","nd","rd","th"}))

    This is valid for ranking up to 20 teams

  3. #3
    Registered User
    Join Date
    04-06-2007
    Location
    Glasgow, Scotland
    MS-Off Ver
    2003 / 2007
    Posts
    83

    Re: Amend ranking formula for sports results

    Thanks for your very prompt reply and yes I should have made it clear that in fact a low LSD is better.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787

    Re: Amend ranking formula for sports results

    In that case it's the same formula but with the >s reversed to <s, i.e.

    =IF(AL44="","",RANK(AL44,AL$44:AL$53)+SUMPRODUCT((AL$44:AL$53=AL44)*(AN$44:AN$53<AN44))&LOOKUP(RANK( AL44,AL$44:AL$53)+SUMPRODUCT((AL$44:AL$53=AL44)*(AN$44:AN$53<AN44)),{1,2,3,4;"st","nd","rd","th"}))

  5. #5
    Registered User
    Join Date
    04-06-2007
    Location
    Glasgow, Scotland
    MS-Off Ver
    2003 / 2007
    Posts
    83

    Re: Amend ranking formula for sports results

    Fantastic it works a treat. Many thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1