+ Reply to Thread
Results 1 to 6 of 6

Max, Min, & Std Dev with Multiple Criteria Including a Wild Card

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    38

    Max, Min, & Std Dev with Multiple Criteria Including a Wild Card

    I've searched for the solution to this problem and have been unable to find it. So here goes my first post!

    As the title states I'm trying to determine the max/min/std dev of a set of data based on multiple criteria.
    The criteria however can sometimes not be selected at all.

    I was able to solve for the average using the following formula:
    =AVERAGEIFS(Data!D2:D10,Data!A2:A10,Results!B2,Data!B2:B10,Results!B3,Data!C2:C10,Results!B4)
    This is because the function averageifs accepts the symbol * as a wild card.

    I've seen suggestions to use max(if(
    but the if function does not accept wildcards to the best of my knowledge.

    I would really appreciate any help or suggestions.
    I have attached a file with a simplifed version of my problem.

    Thank you in advance!!
    Attached Files Attached Files

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Max, Min, & Std Dev with Multiple Criteria Including a Wild Card

    =MAX(IF((Data!A2:A10=Results!B2)*(Data!B2:B10=Results!B3)*(Data!C2:C10=B4), Data!D2:D10))

    ... confirmed with Ctrl+Shift+Enter
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Max, Min, & Std Dev with Multiple Criteria Including a Wild Card

    OR this regular formula.

    =SUMPRODUCT(MAX((Data!A2:A10=Results!B2)*(Data!B2:B10=Results!B3)*(Data!C2:C10=B4)*Data!D2:D10))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Max, Min, & Std Dev with Multiple Criteria Including a Wild Card

    @Fotis, that works as long as the max value is >=0

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Max, Min, & Std Dev with Multiple Criteria Including a Wild Card

    Correct(as always) teacher! Thank you.

    I just tried that in this worksheet and as gives the same result i did this suggestion.

  6. #6
    Registered User
    Join Date
    06-06-2013
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Max, Min, & Std Dev with Multiple Criteria Including a Wild Card

    Thank you so much for the help!
    I tried using Fotis' formula but I'm just having one issue.
    If in my example the chosen criteria is, Criteria 1: A, Criteria 2: CC, and Criteria 3: *
    The max calculated is zero.
    It should be 6.
    Any suggestions?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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