Maxif equivalent

F

Fred Smith

I have a sumif formula, as in:

=sumif(I:I,a2,J:J)

I also want to calculate the maximum of the values which meet the criteria. Is
this possible?
 
D

Don Guillett

From an earlier post of mine today. Note NOT using on complete columns

try this array formula which must be entered using ctrl+shift+enter
=MAX(IF(A2:A22="mytruckcode",B2:B22))
or
=MAX(IF(A2:A22=c2,B2:B22))
 
M

Max

Try something like this, array-entered (press CTRL+SHIFT+ENTER):
=MAX(IF(I1:I100=A2,J1:J100))

Entire col references cannot be used
 
F

Fred Smith

Thanks guys.

I was hoping to avoid arrays, and use the entire column reference, but c'est la
vie. Perhaps in a future version of Excel.

Your recommendation works perfectly.
 

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

Top