+ Reply to Thread
Results 1 to 6 of 6

AVERAGEIFS using two different criteria for one range

  1. #1
    Forum Contributor
    Join Date
    08-28-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013 on PC, 2011 on MAC
    Posts
    159

    AVERAGEIFS using two different criteria for one range

    I just can't figure it out...

    =IFERROR(AVERAGEIFS(TEAM[AGE],TEAM[ACT],"X",TEAM[POS],"LW"),"-")

    That works, but TEAM[POS] should be "LW" or "AG".

    I know I could use a combination of SUMIFS divided by COUNTIFS, but do you see any other way to achieve what I'm looking for ?

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: AVERAGEIFS using two different criteria for one range

    Have a look at this thread:
    http://www.excelforum.com/excel-form...statement.html

    Post a sample workbook if you need more help than that.

    BSB

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: AVERAGEIFS using two different criteria for one range

    I see 3 possibilities

    1. sumifs/countifs as you mentioned
    2. A helper column with =OR(lw,ag)

    3. This depends on what the possible values of POS are.
    Are there only 3 possible values for POS, say LW AG and one other like SR or whatever.
    Then use the criteria "<>SR"


    Make that 4, an array formula as described in the thread posted before me.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: AVERAGEIFS using two different criteria for one range

    This array formula**:

    =IFERROR(AVERAGE(IF(TEAM[ACT]="X",IF(ISNUMBER(MATCH(TEAM[POS],{"LW","AG"},0)),TEAM[AGE]))),"-")

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Contributor
    Join Date
    08-28-2015
    Location
    Montreal, Canada
    MS-Off Ver
    2013 on PC, 2011 on MAC
    Posts
    159

    Re: AVERAGEIFS using two different criteria for one range

    Tony's solution worked like a charm, thank you everyone for your input.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: AVERAGEIFS using two different criteria for one range

    You're welcome. We appreciate the feedback!

+ 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. AVERAGEIFS with multiple criteria on one range
    By ctsmith84 in forum Excel General
    Replies: 7
    Last Post: 04-23-2020, 11:31 PM
  2. [SOLVED] AVERAGEIFS formula where criteria range can be either of two value
    By lostest in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-27-2015, 01:01 PM
  3. [SOLVED] Averageifs formula same range but two different criteria
    By Alphabex in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-21-2015, 05:48 PM
  4. [SOLVED] AverageIFS multiple criteria in one range
    By AndreaJean18 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2015, 10:30 AM
  5. AVERAGEIFS and range for criteria?
    By MaverickBlack in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2015, 05:35 AM
  6. [SOLVED] Macro for AverageIFS, with multiple criteria in the same criteria range
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 05-24-2014, 01:13 AM
  7. [SOLVED] Several formulas with specific range criteria (AVERAGEIFS, STDEV(IF), COUNTIFS)
    By thaphthia in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 04-11-2013, 05:22 PM

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