ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can I do a MAXIF similar to SUMIF and/or COUNTIF? Please Advise (https://www.excelbanter.com/excel-discussion-misc-queries/166132-can-i-do-maxif-similar-sumif-countif-please-advise.html)

Sathya2

Can I do a MAXIF similar to SUMIF and/or COUNTIF? Please Advise
 


Bob Phillips

Can I do a MAXIF similar to SUMIF and/or COUNTIF? Please Advise
 
Yes

=MAX(IF(rng1=some_value,rng2))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

rng1 and rng2 can be the same range or different ranges.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Sathya2" wrote in message
...





All times are GMT +1. The time now is 01:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com