Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I'm trying to use the MAX formula to not only get the maximum score, but to
also show the player name as well. My excel sheet is set up like this: PLAYER NAME SCORE Player 1 200 Player 2 210 Player 3 220 I want the formula to not only show me that 220 is the highest score, but I also want to show the name of the player who has the highest score. Thanks, |
#2
![]() |
|||
|
|||
![]()
Assuming your example cells are A1:B4
=MAX(B2:B4) gives maximum score =LOOKUP(MAX(B2:B4),B2:B4,A2:A4) gives player with maximum score -- Ian -- "FrankTimJr" wrote in message ... I'm trying to use the MAX formula to not only get the maximum score, but to also show the player name as well. My excel sheet is set up like this: PLAYER NAME SCORE Player 1 200 Player 2 210 Player 3 220 I want the formula to not only show me that 220 is the highest score, but I also want to show the name of the player who has the highest score. Thanks, |
#3
![]() |
|||
|
|||
![]()
Hi, Ian:
I don't think LOOKUP is the appropriate function here. Note the following from Help on LOOKUP: "Important The values in lookup_vector must be placed in ascending order: ....,-2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise, LOOKUP may not give the correct value. Uppercase and lowercase text are equivalent." The data is probably NOT sorted by score. Since the names are presumably to the left of the scores, VLOOKUP won't work, either, but this formula will =INDEX(A2:A4,MATCH(MAX(B2:B4),B2:B4,0)) MATCH's 3rd argument of 0 must be used to handle the fact that the scores are note sorted. On Mon, 26 Sep 2005 15:14:18 GMT, "Ian" wrote: Assuming your example cells are A1:B4 =MAX(B2:B4) gives maximum score =LOOKUP(MAX(B2:B4),B2:B4,A2:A4) gives player with maximum score -- Ian |
#4
![]() |
|||
|
|||
![]()
Frank, if you put the scores in column A and the names in column B, you could
use the following: =VLOOKUP(MAX(A2:A4),A2:B4,2). HTH -- Sincerely, Michael Colvin "FrankTimJr" wrote: I'm trying to use the MAX formula to not only get the maximum score, but to also show the player name as well. My excel sheet is set up like this: PLAYER NAME SCORE Player 1 200 Player 2 210 Player 3 220 I want the formula to not only show me that 220 is the highest score, but I also want to show the name of the player who has the highest score. Thanks, |
#5
![]() |
|||
|
|||
![]()
Ok, I tried both examples, and they do work to a point, however, something is
not right... In my spreadsheet, I have the following: High Game Player 100 Player 01 110 Player 02 140 Player 03 200 Player 04 250 Player 05 170 Player 06 280 Player 07 279 Player 08 259 Player 09 268 Player 10 Using either formula, they both return a result of Player 10 when clearly the high game is with Player 07. =LOOKUP(MAX(A2:A11),A2:A11,B2:B11) or =VLOOKUP(MAX(A2:A11),A2:B11,2) Any ideas? "Michael" wrote: Frank, if you put the scores in column A and the names in column B, you could use the following: =VLOOKUP(MAX(A2:A4),A2:B4,2). HTH -- Sincerely, Michael Colvin "FrankTimJr" wrote: I'm trying to use the MAX formula to not only get the maximum score, but to also show the player name as well. My excel sheet is set up like this: PLAYER NAME SCORE Player 1 200 Player 2 210 Player 3 220 I want the formula to not only show me that 220 is the highest score, but I also want to show the name of the player who has the highest score. Thanks, |
#6
![]() |
|||
|
|||
![]()
Sort Column A, axcending.
-- Sincerely, Michael Colvin "FrankTimJr" wrote: Ok, I tried both examples, and they do work to a point, however, something is not right... In my spreadsheet, I have the following: High Game Player 100 Player 01 110 Player 02 140 Player 03 200 Player 04 250 Player 05 170 Player 06 280 Player 07 279 Player 08 259 Player 09 268 Player 10 Using either formula, they both return a result of Player 10 when clearly the high game is with Player 07. =LOOKUP(MAX(A2:A11),A2:A11,B2:B11) or =VLOOKUP(MAX(A2:A11),A2:B11,2) Any ideas? "Michael" wrote: Frank, if you put the scores in column A and the names in column B, you could use the following: =VLOOKUP(MAX(A2:A4),A2:B4,2). HTH -- Sincerely, Michael Colvin "FrankTimJr" wrote: I'm trying to use the MAX formula to not only get the maximum score, but to also show the player name as well. My excel sheet is set up like this: PLAYER NAME SCORE Player 1 200 Player 2 210 Player 3 220 I want the formula to not only show me that 220 is the highest score, but I also want to show the name of the player who has the highest score. Thanks, |
#7
![]() |
|||
|
|||
![]()
I've tried pasting you data into a sheet and I get the results you reported,
but I can't figure out why. I did notice that if I edit one of the scores to be the maximum after entering the formula, it returns the correct result. However, when I return the value to it's original, it goes back to the wrong result. I haveto admit, I'm very puzzled, and I don't know the answer. -- Ian -- "FrankTimJr" wrote in message ... Ok, I tried both examples, and they do work to a point, however, something is not right... In my spreadsheet, I have the following: High Game Player 100 Player 01 110 Player 02 140 Player 03 200 Player 04 250 Player 05 170 Player 06 280 Player 07 279 Player 08 259 Player 09 268 Player 10 Using either formula, they both return a result of Player 10 when clearly the high game is with Player 07. =LOOKUP(MAX(A2:A11),A2:A11,B2:B11) or =VLOOKUP(MAX(A2:A11),A2:B11,2) Any ideas? "Michael" wrote: Frank, if you put the scores in column A and the names in column B, you could use the following: =VLOOKUP(MAX(A2:A4),A2:B4,2). HTH -- Sincerely, Michael Colvin "FrankTimJr" wrote: I'm trying to use the MAX formula to not only get the maximum score, but to also show the player name as well. My excel sheet is set up like this: PLAYER NAME SCORE Player 1 200 Player 2 210 Player 3 220 I want the formula to not only show me that 220 is the highest score, but I also want to show the name of the player who has the highest score. Thanks, |
#8
![]() |
|||
|
|||
![]()
Hi
Try... =VLOOKUP(MAX(A2:A11),A2:B11,2,FALSE) or =INDEX(B2:B11,MATCH(MAX(A2:A11),A2:A11,0),1) "FrankTimJr" wrote in message ... Ok, I tried both examples, and they do work to a point, however, something is not right... In my spreadsheet, I have the following: High Game Player 100 Player 01 110 Player 02 140 Player 03 200 Player 04 250 Player 05 170 Player 06 280 Player 07 279 Player 08 259 Player 09 268 Player 10 Using either formula, they both return a result of Player 10 when clearly the high game is with Player 07. =LOOKUP(MAX(A2:A11),A2:A11,B2:B11) or =VLOOKUP(MAX(A2:A11),A2:B11,2) Any ideas? "Michael" wrote: Frank, if you put the scores in column A and the names in column B, you could use the following: =VLOOKUP(MAX(A2:A4),A2:B4,2). HTH -- Sincerely, Michael Colvin "FrankTimJr" wrote: I'm trying to use the MAX formula to not only get the maximum score, but to also show the player name as well. My excel sheet is set up like this: PLAYER NAME SCORE Player 1 200 Player 2 210 Player 3 220 I want the formula to not only show me that 220 is the highest score, but I also want to show the name of the player who has the highest score. Thanks, |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF formula? | Excel Worksheet Functions | |||
writing a formula for a colored value | New Users to Excel | |||
referencing named formula using INDIRECT function | Excel Worksheet Functions | |||
Simplify formula | Excel Worksheet Functions | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) |