MAX formula help

G

Guest

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,
 
I

Ian

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
 
G

Guest

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
 
G

Guest

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?
 
I

Ian

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

kk

Hi

Try...

=VLOOKUP(MAX(A2:A11),A2:B11,2,FALSE)

or

=INDEX(B2:B11,MATCH(MAX(A2:A11),A2:A11,0),1)


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?
 
M

Myrna Larson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Simple Formula Question 0
Help With A Golf League 4
Return cell reference rather than value 4
Excel Excel conundrum - I've tried and tried, but 10
Formula Help 3
Historical Stats 1
sorting golf scores 5
Formula 9

Top