+ Reply to Thread
Results 1 to 3 of 3

Calculating the closest score

  1. #1
    Registered User
    Join Date
    08-02-2004
    Posts
    21

    Calculating the closest score

    Hi

    I'm a bit of a lurker around here and couldn't find the answer to my question by seaching, so here goes ..

    I run a football tipping comp and one of the prizes is based on a "pick-the-score" competition. The players choose a score eg. 30-6 and the player(s) who correctly pick the margin and score are the winner. I can get the formula working to show "Winner" where the score is exact, but I am trying to work out a way to do this if nobody picks the exact score (in which case the prize goes to the closest score).

    OK, here is an example.
    Winning score is 30-6, so the correct margin is 24.
    ======================================
    Player 1 - 10-4 (Margin is 6)
    Player 2 - 22-10 (Margin is 12)
    Player 3 - 30-4 (Margin is 26)
    Player 4 - 23-3 (Margin is 20)
    Player 5 - 12-2 (Margin is 10)
    Player 6 - 10-18 (Margin is 8)
    Player 7 - 32-16 (Margin is 16)

    As nobody has a margin of 24, the closest would be Player 3 with 26.

    Example 2
    =========
    Still using the players above. If the margin was 11, then both Players 2 and 5 share the prize as they are the closest.

    Can anyone give me a formula that would do this for me please?

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    May be this link could help?

    http://www.cpearson.com/Excel/rank.htm
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Registered User
    Join Date
    08-02-2004
    Posts
    21
    Thanks Chip ... I'll have a look.

+ 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