+ Reply to Thread
Results 1 to 9 of 9

How to look for best Scorer if I have two criteria

  1. #1
    Registered User
    Join Date
    05-31-2018
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    2

    How to look for best Scorer if I have two criteria

    Hello everyone,

    I'm stuck and I cant solve the following problem.
    I have to determine the user with the highest achieved score for Criteria A. However, I might have a couple of users who scored the same result for Criteria A. In order to determine the highest scorer I am then looking Criteria B. Out of those who scored the highest result under Criteria A, who actually achieved the best result under Criteria B.

    Screenshot.PNG

    As highlighted in the attached file, the formula that I am looking for should give me the result "User 7".
    Both User 7, User 10 and User 12 achieved the same highest score under Criteria A. Out of the shortlisted users, User 7 scored the highest under Criteria B though. I have to determine this user.

    I think the formula that I am looking for is a combination of Index(), Match() and Sumproduct() and Max()... but I might be wrong.
    Your help is highly appreciated, thank you.
    best regards
    Chris
    Attached Files Attached Files
    Last edited by ChrisCA89; 05-31-2018 at 04:02 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,288

    Re: How to look for best Scorer if I have two criteria

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,288

    Re: How to look for best Scorer if I have two criteria

    Try this:

    =INDEX($B$3:$B$15,MATCH(LARGE(IF($C$3:$C$15=LARGE($C$3:$C$15,1),$D$3:$D$15),1),$D$3:$D$15,0))

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    Will only work properly, of course, if you do not have a tie for first place.

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to look for best Scorer if I have two criteria

    I did think of something similar to Ali but if say the value in D2 is also 3.05, it will return user1 rather than user 7

    Adding a column of c*1000+d and finding the max of this works, if the data is Representative of reality, but not a one cell solution.

    Still thinking

  5. #5
    Registered User
    Join Date
    05-31-2018
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    2

    Re: How to look for best Scorer if I have two criteria

    Hi =)

    Thank you so much, it works just perfect.
    Thank you for your note with the tie. In my scenario it doesnt matter as I am using the User to display the benchmark. Wouldnt matter if two users achieved exactly the same score.
    Thank you again. =)!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,288

    Re: How to look for best Scorer if I have two criteria

    Fine - it will only display the first to meet the criteria.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: How to look for best Scorer if I have two criteria

    but it wont. In the example I gave User 1 doesn't have the highest score for criteria A, but has the same Criteria B score, as the User who has the highest Criteria A score and is using criteria B as the split

    That was my point if you user the formula and overtype cell D3, the formula will return user 1, even tho C3 is not the maximum of criteria A

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,288

    Re: How to look for best Scorer if I have two criteria

    Ugh! Good point ...

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,288

    Re: How to look for best Scorer if I have two criteria

    This should do it:

    =LOOKUP(2,1/(($C$3:$C$15=MAX($C$3:$C$15))*($D$3:$D$15=MAX(IF($C$3:$C$15=MAX($C$3:$C$15),$D$3:$D$15)))),$B$3:$B$15)

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

+ 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. Getting football results and scorer times from xscores web page into Excel
    By quench in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-07-2018, 10:18 AM
  2. Replies: 2
    Last Post: 02-25-2015, 04:13 PM
  3. Highest scorer with multiple condition
    By Naresh Maloo in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 08-24-2014, 05:18 AM
  4. highest scorer
    By Naresh Maloo in forum Hello..Introduce yourself
    Replies: 2
    Last Post: 08-23-2014, 06:34 AM
  5. [SOLVED] Need to do ranking top 5 scorer
    By carrillod in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-19-2013, 04:29 PM
  6. [SOLVED] Duplicate Names When Picking Out Highest Scorer
    By webstmonkey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-02-2013, 09:51 PM
  7. Picking out the name and score of the highest scorer
    By jimmymcmahon in forum Excel General
    Replies: 10
    Last Post: 08-06-2011, 05:44 AM

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