+ Reply to Thread
Results 1 to 2 of 2

Award values after comparing two rows, avoiding double counting

  1. #1
    Registered User
    Join Date
    10-24-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    2

    Award values after comparing two rows, avoiding double counting

    Hi,

    Normally when I am struggling in Excel, I manage to find a solution on the web, but now I am for once actually stuck and would really appreciate any help I could get:

    I'm hosting a competition where the participants will get points based on how well they guess on the final results (gold, silver, bronze) on a set number of sporting events. The sports have individual participants, so a nation can have many athletes competing in each event and therefore a nation can win both gold, silver and bronze in the same event.

    You get 5 points per correct nation per correct medal, so for instance if you guessed that the U.S. would win gold and they do, then you get 5 points. For a correct top 3 nation, but in the incorrect place (i.e. the nation you guessed would win gold, get silver instead), you are awarded 1 point. However, if you have selected one nation to get two top three placements and that nation only get one top three placement you only receive points once.

    I need a formula that correctly calculates the points (avoiding double counting). A double counting problem typically arises when I have a contestant that has selected the same nation to win all medals and that nation wins for instance only the gold medal. Then the contestant should get 5 points for the correct gold winner and nothing more. However, I can't find a match/lookup function that awards the 5 points without also awarding 1 point for having the silver nation top 3 and an additional point for having the bronze nation top 3.

    A few examples:
    Actual_Gold >< Guessed_Gold & Guessed_Gold = Actual_Silver, 1 point awarded
    Actual_Gold = Guessed_Gold, 5 points awarded
    Actual_Gold = Guessed_Gold & Actual_Silver = Guessed_Gold & Actual_Silver <> Guessed_Silver, 5 points awarded for correct gold, as there is no double counting 0 points are awarded for having Actual_Gold = Guessed_Silver.

    I have attached a spreadsheet with a few possible outcomes and have included comments to each of them.

    Thanks in advance.
    Attached Files Attached Files
    Last edited by joachimh; 01-08-2018 at 11:06 AM.

  2. #2
    Registered User
    Join Date
    10-24-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Award values after comparing two rows, avoiding double counting

    Found a (semi-optimal) solution myself.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Comparing two rows replacing values in columns
    By roshukha in forum Excel General
    Replies: 5
    Last Post: 05-30-2014, 04:18 PM
  2. [SOLVED] How to delete rows based on comparing values in two fields
    By OmniBlue in forum Excel General
    Replies: 5
    Last Post: 09-19-2013, 12:32 PM
  3. [SOLVED] Create a lookup table to award point values based on run time
    By coach touch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2012, 12:35 PM
  4. Is there a way of comparing text values in rows
    By waivee in forum Excel General
    Replies: 10
    Last Post: 06-26-2012, 01:44 PM
  5. Comparing values in two rows, and move identical rows
    By newyorknix in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-01-2011, 12:14 AM
  6. Grouping rows based on column values and comparing row values
    By bernborough in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-27-2010, 10:18 AM
  7. Comparing Values by Rows
    By akeene in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2007, 08:52 PM

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