Maximum If Help

R

RFJ

Thanks to the guys who helped on the 'Average If' post. Both worked <G>

I now want to find maximum salaries and, unfortunately, I can't tweak the
above solution.

Essentially I have two columns

'Grade' contains the grade (1 to 10) of every employee
'Salary' contains their salary.

I want to calculate the maximum salary for each grade

Can SKS give me the syntax

TIA

Robin
 
D

Duke Carey

=MAX(--(grade=1)*salary)

entered as an array formula by pressing Ctrl-Shift-Enter
 
Top