+ Reply to Thread
Results 1 to 5 of 5

Getting name depending on max score

  1. #1
    Registered User
    Join Date
    03-24-2016
    Location
    Sofia, Bulgaria
    MS-Off Ver
    2013
    Posts
    37

    Getting name depending on max score

    Hi guys,

    I am trying to get the name of a person who scored the maximum in a game. I have used vlookup before, but from what I can see index and match are a more powerful tools because they works vertically as well.
    As you can see from the spreadsheet that I have attached, I have given it a go in I6.
    If you solve my problem can you please explain in detail how you do it? On YouTube the videos show examples without actually explaining the exact meaning of the functions, so I think I am a bit lost.


    Best Regards,

    Tsvetan
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2024
    Posts
    6,176

    Re: Getting name depending on max score

    Try :

    =INDEX($A$1:$F$1,AGGREGATE(15,6,COLUMN($A$2:$F$10)/($A$2:$F$10=MAX($A$2:$F$10)),1))

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,810

    Re: Getting name depending on max score

    Use this which will list ALL names if there are multiple max scores

    in J5

    =IFERROR(INDEX($1:$1,SMALL(IF(A$2:F$10=I$5,COLUMN(A$2:F$10)),ROWS($1:1))),"")

    ...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.

    Copy down

    Above formula supplied by 63Falcondude in your last post
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-12-2017
    Location
    Brazil
    MS-Off Ver
    2016
    Posts
    59

    Re: Getting name depending on max score

    Hello.
    For the structure shown (with data starting at "A1") the following formula will suffice:
    Please Login or Register  to view this content.
    How does she work?

    It will create an array of divisions of the columns of "A: F" / by searching for the present value in "i5" in the presented values and will return the lowest true value found (in this specific case, either the largest or the smallest. I chose the smaller one.
    I'm not very good at explaining but that's what's happening.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2504
    Posts
    13,720

    Re: Getting name depending on max score

    Tsetsko it appears that the focus of your question is how INDEX - MATCH works and how can it be applied to this problem.

    Here is one way to apply INDEX - MATCH to this problem. It is the simplest way I could think of. This formula must be array entered.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    How does it work?

    If you are not familiar with them there are two tools in Excel which are good for analyzing, trouble shooting and self instruction. They are the F9 function key (in upper level of the keyboard) and the 'Evaluate Formula' feature under the FORMULAS ribbon also know as Fx.

    Using the Fx feature:
    With the formula cell active click the 'Evaluate Formula' and click 'Evaluate' repeatedly. With each click Excel shows step by step how the formula is calculated.

    Using the F9 function key:
    Select just A2:F10=I5 in the formula bar. Press F9 and see an array of TRUE/FALSE. Select MATCH(A1:F1,A1:F1,0) and press F9. You will see {1,2,3,4,5,6}. IF executes MATCH conditional upon A2:F10=I5 being TRUE. The null string "" is optional. I used it to make results of the next F9 step clearer in the formula bar. If you select IF(A2:F10=I5,MATCH(A1:F1,A1:F1,0),"") and press F9 you should see

    {"","","","","","";"","","","","","";"","","","","","";"","","","","",6;"","","","","","";"","","","","","";"","","","","","";"","","","","","";"","","","","",""}.

    MIN returns the 6 and passes it to INDEX whose first argument is the range of names. INDEX returns the 6th name in that range ... Ivan.

    Did this help?

    By the way, check the other formulas. INDEX - MATCH might not be your preferred approach to this problem.
    Last edited by FlameRetired; 10-29-2017 at 06:19 PM.
    Dave

+ 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. Replies: 9
    Last Post: 01-20-2016, 08:59 AM
  2. [SOLVED] formula/conditional format to award score from 0 to 4 depending on cell value
    By nigelog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-24-2014, 07:52 AM
  3. Replies: 1
    Last Post: 11-24-2013, 07:53 AM
  4. Moving a calclated score to a master score sheet and ranking the scores into placings
    By Jongleur69 in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 04-22-2013, 11:53 PM
  5. Replies: 11
    Last Post: 02-21-2013, 04:38 AM
  6. Replies: 2
    Last Post: 03-20-2012, 06:30 PM
  7. Replies: 1
    Last Post: 05-11-2010, 10:15 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