+ Reply to Thread
Results 1 to 6 of 6

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

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    Moscow
    MS-Off Ver
    2013
    Posts
    3

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

    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.

    When i do that, 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

    Capture.JPG
    Last edited by Ahldie333; 09-23-2015 at 03:32 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

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

    Here, try this:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    confirmed with ctrl+shift+enter

  3. #3
    Registered User
    Join Date
    09-23-2015
    Location
    Moscow
    MS-Off Ver
    2013
    Posts
    3

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

    Hey thanks for that, and if i dont want it to max if column B has AA? would it be like search(<>"AA";B...)?

    and if i decided to include more criteria would i keep adding the *Search()?

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

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

    Rather something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In first part: ISNUMBER(SEARCH("white";A2:A1000))
    You can join all that you need for finding specific word (in case of more criteria)
    and in second part ISERR(SEARCH("aa";B2:B1000)
    you can join all that you don't want (hint <>)

  5. #5
    Registered User
    Join Date
    09-23-2015
    Location
    Moscow
    MS-Off Ver
    2013
    Posts
    3

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

    Thanks Zbor,

    my final question

    if i wanted to add more criteria, what would that look like?

    would I add in another *isnumber(search)?

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,607

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

    This can vary depending how you want to organize your data.

    For example: white and not AA AND black and not AA
    Or: white OR black and not AA
    or: white AND black and not AA OR not BB
    ...

    There is large number of combinations and for igher number probably is best to create helper column where you can extract those criteria and then just finding MAX of that column.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 06-26-2015, 06:04 AM
  2. Replies: 3
    Last Post: 12-03-2014, 05:43 PM
  3. Replies: 6
    Last Post: 06-17-2014, 11:11 AM
  4. Is there a formula that will populate a cell w/ TEXT based on multiple criteria?
    By violenttuesday in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2014, 03:46 PM
  5. [SOLVED] If statement based on multiple criteria
    By TomRet in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-24-2013, 11:11 AM
  6. [SOLVED] Formula to return specific text based on multiple cells meeting a single criteria
    By missydanni in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-13-2013, 09:48 AM
  7. Replies: 2
    Last Post: 12-03-2011, 03:51 AM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1