Max If statement with multiple criteria based on specific text in a cell Issue

Ahldie333

New Member
Joined
Sep 23, 2015
Messages
3
Hello,


I have been having some difficulty for a few days now with this issue. I am attempting to find the Max for an age based on multiple criteria some excluding and including certain texts from the cells.


I tried building it like the countifs statement where you can search for certain text in the cell and either exclude or include that in the count based off of that text listed in the "* *"
for example


I used the formula {MAX(IF($A:$A="*White*";IF($B:$B<>"*AA*";$C:$C)))} to calculate the max age of all camry's that are white and that do not have AA in their number, if true then to max the age column.

column A has car names such as sky blue camry, snow white camry, bright white camry.

and column B has random numbers like 1123AA, 1123BB, 112,BB, 11AA11 and I dont want to include in the max if the cell has AA.

and column C has the ages of the car.


When i do that with the ctrl shift enter, i get a value returned as 0 everytime. But as soon as I take off the * * it works. So im wondering if there is another way to find the max number using multiple criteria using certain text found in the cell.


any help would be much appreciated :D
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi, try like this, which requires CSE.

Code:
=MAX(IF(ISNUMBER(SEARCH("White";$A1:$A1000));IF(NOT(ISNUMBER(SEARCH("AA";$B1:$B1000)));$C1:$C1000)))

Note: for efficiency reasons you should avoid using full column references when using array processing functions.
 
Upvote 0
Hi, it would depend what those extra criteria were. For another condition based on an additional column you would nest in another IF function.
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,835
Members
449,192
Latest member
mcgeeaudrey

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top