+ Reply to Thread
Results 1 to 4 of 4

IF filtering on multiple string criteria, then MAX those results (might include a 0)

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    Canada
    MS-Off Ver
    Microsoft Office 2011 for Mac
    Posts
    2

    IF filtering on multiple string criteria, then MAX those results (might include a 0)

    I've been banging my head against this for a few days now for my sons hockey team and have gotten nowhere so any help would be very much appreciated!

    In this example I need to match all games played by "Frank" that are "League" games and find the MAX value of 1stPeriodGoalsAgainst

    A B C D E F G
    1 Game Home/Away Goalie Type 1stPeriodGoalsFor 1stPeriodGoalsAgainst
    2 1 Home Frank League 2 0
    3 2 Away Tom League 1 3
    4 3 Home Frank Tournament 0 0
    5 4 Away Frank Tournament 2 2
    6 5 Home Tom League 1 4
    7 6 Away Frank League 3 0

    Since there is no MAXIFS function I've tried various forms of MAX IF and IF MAX to hit on the search criteria and retrieve the MAX value of that particular column

    Thanks in advance!

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: IF filtering on multiple string criteria, then MAX those results (might include a 0)

    Try this array* formula:

    =MAX(IF((C$2:C$7="Frank")*(D$2:D$7="League"),F$2:F$7))

    *An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual <Enter>

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-04-2015
    Location
    Canada
    MS-Off Ver
    Microsoft Office 2011 for Mac
    Posts
    2

    Re: IF filtering on multiple string criteria, then MAX those results (might include a 0)

    Pete, that works perfect, thanks very much for the speedy reply!

    Cheers

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,705

    Re: IF filtering on multiple string criteria, then MAX those results (might include a 0)

    Glad to help.

    If that takes care of your original question, please select Thread Tools from the menu above your first post and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you, and leave a private comment if you wish to, by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Create a worksheet from results of the whole workbook (multiple sheet filtering)
    By ralfaia in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2015, 03:07 PM
  2. [SOLVED] Extract text from a string of text (amend formula to include new criteria)
    By robertguy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-10-2013, 04:53 PM
  3. AVERAGEIFS() with criteria that a string NOT include specific text
    By tjnelso in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2013, 07:30 PM
  4. Replies: 1
    Last Post: 07-23-2012, 12:50 AM
  5. Replies: 0
    Last Post: 08-16-2007, 05: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