Find max value in one column and return the value of corrosponding cell in different column
Hi Paul
I entered in G1 "T1" and H1 "T2" (without the quotes)
In F2 I entered 11 and in F3 12.
The array entered formula in G2
{=MAX(IF($B$2:$B$7=$F2,D$2:D$7,""))}
copied to H2 and G3:H3
returned the maximum values for each age group and each test.
Array formulae are created and edited using Control+Shift+Enter (CSE) not
just Enter.
When you use CSE, Excel will create the curly braces { } around the
formula. Do not type them yourself.
In G5 enter (normal enter, not array)
=INDEX($C$2:$C$7,MATCH(G2,D$2:D$7,0))
and copy to H5, G6:H6
to return the corresponding names
--
Regards
Roger Govier
wrote in message
oups.com...
Hi All,
Haveing a bad excel day - I am sure I have done this before but
racking my brains and can't remember!!
I have a list of scores for various tests listed by agegroup. I am
trying to summarise the data on a seperate worksheet to list who
attained the maximum value in each test for each agegroup. So using
the example below of the raw data I am trying to use a function to
find the MAX of T1 for age 11 (22) and age 12 (10). What I am trying
to do is use a function to list the owner of these MAX values listed
in column B
A B C D
Age Name T1 T2
11 George 10 5
11 Dave 15 2
11 Jim 22 1
12 Paul 5 8
12 James 4 10
12 Dylan 10 11
Can I apply a similar function to list the 'owner' of the max value?
Thanks in advance
Paul
|