ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   MAX IF? - Return MAX if Condition met in Separate Column (https://www.excelbanter.com/excel-discussion-misc-queries/163115-max-if-return-max-if-condition-met-separate-column.html)

wx4usa

MAX IF? - Return MAX if Condition met in Separate Column
 
I need a formula that will return the MAX value in Column A if these
column A numbers have "Active" in column B.

Column B is either Active or Inactive. Column A is age in days from
1-534.

Is there such a thing as MAX IF?


JE McGimpsey

MAX IF? - Return MAX if Condition met in Separate Column
 
One way (array-entered: CTRL-SHIFT-ENTER or CMD-RETURN):

=MAX(IF(B1:B1000="Active",A1:A1000))

In article .com,
wx4usa wrote:

I need a formula that will return the MAX value in Column A if these
column A numbers have "Active" in column B.

Column B is either Active or Inactive. Column A is age in days from
1-534.

Is there such a thing as MAX IF?


JMB

MAX IF? - Return MAX if Condition met in Separate Column
 
try
=MAX((A1:A100)*(B1:B100="Active"))

entered with Cntrl+Shift+Enter or you'll get #VALUE


"wx4usa" wrote:

I need a formula that will return the MAX value in Column A if these
column A numbers have "Active" in column B.

Column B is either Active or Inactive. Column A is age in days from
1-534.

Is there such a thing as MAX IF?



Peo Sjoblom

MAX IF? - Return MAX if Condition met in Separate Column
 
One way

=MAX(IF(B2:B100="Active",A2:A100))

entered with ctrl + shift & enter

(lookup array formula in help)


--

Regards,

Peo Sjoblom




"wx4usa" wrote in message
oups.com...
I need a formula that will return the MAX value in Column A if these
column A numbers have "Active" in column B.

Column B is either Active or Inactive. Column A is age in days from
1-534.

Is there such a thing as MAX IF?





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

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