![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 37
|
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 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
Quote:
|
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,319
|
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 | |
|
New Member
Join Date: Mar 2002
Posts: 37
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|