View Single Post
  #8   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