Thanks:  0
Likes:  0

1. I have 2 columns: A with value and B with text. I need to have the maximum value based on one condition (that meets the column B). In other words, it is similar to SUMIF, but it would be a MAXIF (unfortunately, I didnīt find this function).
It would be great to have a max based on two conditions too....
Regards,

2. On 2002-03-21 10:41, RicardoB wrote:
I have 2 columns: A with value and B with text. I need to have the maximum value based on one condition (that meets the column B). In other words, it is similar to SUMIF, but it would be a MAXIF (unfortunately, I didnīt find this function).
It would be great to have a max based on two conditions too....
Regards,
What is the condition?

3. OK.

Consider

{2,"a";3,"a";2,"b";6,"a";8,"b";9,"b";3,"c"}

in A2:B8.

=SUMPRODUCT(MAX((B2:B8="a")*(A2:A8)))

will give you the MAX of the values that are associated with an "a" in B2:B8.

4. On 2002-03-21 10:51, Aladin Akyurek wrote:
OK.

Consider

{2,"a";3,"a";2,"b";6,"a";8,"b";9,"b";3,"c"}

in A2:B8.

=SUMPRODUCT(MAX((B2:B8="a")*(A2:A8)))

will give you the MAX of the values that are associated with an "a" in B2:B8.

Great!! Thank you very much, Aladin!!

## User Tag List

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•