# formula for max of one column based on criteria of another column

1. ## formula for max of one column based on criteria of another column

need a formula to find the max number in col.b but only for 110 in col.a
Col.a Col.b
110 64.3
117 66.6
111 7.5
114 55.8
118 68.4
115 55.7
119 64.7
110 65.2  Register To Reply

2. ## Re: formula for max of one column based on criteria of another column

Try

e.g.

=MAX(IF(A1:A10=110,B1:B10))

confirmed with CTRL+SHIFT+ENTER not just ENTER  Register To Reply

3. ## Re: formula for max of one column based on criteria of another column

rclose,

You can even try a NON CTRL+SHIFT+ENTER if you want...

PHP Code:
``` =SUMPRODUCT(MAX((\$A\$2:\$A\$9=C2)*(B2:B9))) where C2=110  ```
Warm Regards
e4excel  Register To Reply

4. ## Re: formula for max of one column based on criteria of another column

Just for educational purpose I tried to use MIN instead of MAX but it doesn't work..
I fail to understand the discrimination as MAX and MIN to me seemed to be two sides of the same coin.. ?????

Kindly delete this post as double posting due to slow net speed  Register To Reply

5. ## Re: formula for max of one column based on criteria of another column

Just for educational purpose I tried to use MIN instead of MAX but it doesn't work..
I fail to understand the discrimination as MAX and MIN to me seemed to be two sides of the same coin.. ?????

I think the Boolean zeroes get mixed up with the MINS logic...  Register To Reply

6. ## Re: formula for max of one column based on criteria of another column

Being a Hardcore Sumproduct fan I tried getting the MIN value using the LARGE funtion in a different manner...ANTI-USE of LARGE.

PHP Code:
``` =SUMPRODUCT(LARGE(((\$A\$2:\$A\$9=C2)*(\$B\$2:\$B\$9)),COUNTIF(\$A\$2:\$A\$9,C2))) where C2=110  ```

Hope this helps..!!!

Warm Regards
e4excel  Register To Reply