#1   Report Post  
FrankTimJr
 
Posts: n/a
Default MAX formula help

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   Report Post  
Ian
 
Posts: n/a
Default

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   Report Post  
Myrna Larson
 
Posts: n/a
Default

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   Report Post  
Michael
 
Posts: n/a
Default

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   Report Post  
FrankTimJr
 
Posts: n/a
Default

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   Report Post  
Michael
 
Posts: n/a
Default

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   Report Post  
Ian
 
Posts: n/a
Default

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   Report Post  
kk
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF formula? meris Excel Worksheet Functions 1 September 6th 05 07:14 AM
writing a formula for a colored value aaronwexler New Users to Excel 11 September 1st 05 03:11 PM
referencing named formula using INDIRECT function [email protected] Excel Worksheet Functions 19 May 11th 05 09:48 AM
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 11:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"