+ Reply to Thread
Results 1 to 4 of 4

Combining multiple AVERAGEIF to AVERAGEIFS

  1. #1
    Registered User
    Join Date
    03-04-2016
    Location
    San Diego
    MS-Off Ver
    13
    Posts
    13

    Combining multiple AVERAGEIF to AVERAGEIFS

    Hello,
    I am trying to combine the fomulae in column B in the attached to keep a consistent formula in the column. The average should not include values of "0" and should be averaged together by the text in column A.
    My thought was something like this:

    =AverageIfs(C$1:C$15,C$1:C$15,C:1=

    and then I get sort of stuck..


    I could also nest IF statements with
    IF(C1:15="AA",Averageif(C1:C15>"0",IF((C1:C15="BB",(AverageIf(C1:C15>"0", etc

    But that is unwieldy and a little clunky. I am sure there is a way to use AVERAGEIFS, but just don't know how to make it work.

    Maybe a table would work better?

    Thank you in advance for any help.
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Combining multiple AVERAGEIF to AVERAGEIFS

    Please try at D1

    =AVERAGEIFS($C$1:$C$17,$C$1:$C$17,">0",$A$1:$A$17,A1)
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: Combining multiple AVERAGEIF to AVERAGEIFS

    Put this in E1 and copy down.

    Finds the average for whatever is in Col A excluding rows where Col C is Zero.
    Formula for first row is:

    =AVERAGEIFS(B$2:B$18,B$2:B$18,">0",A$2:A$18,A2)

    Formula for second entry onward checks whether the "average" is the same as the row above. If it is it sets the cell as blank. If it isn't, it finds the Average for the new match in Col A

    =IF(AVERAGEIFS(B$2:B$18,B$2:B$18,">0",A$2:A$18,A3)=AVERAGEIFS(B$2:B$18,B$2:B$18,">0",A$2:A$18,A2),"",AVERAGEIFS(B$2:B$18,B$2:B$18,">0",A$2:A$18,A3))

    NOTE: Only works if Col A is sorted.

    Hope this helps?

    Ochimus
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-04-2016
    Location
    San Diego
    MS-Off Ver
    13
    Posts
    13

    Re: Combining multiple AVERAGEIF to AVERAGEIFS

    Thanks guys, this is a huge help. I can move on to the next road block....Index/Match/Match!!!

+ 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 - Multiple Columns, Multiple Criteria
    By ayopyo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2019, 12:17 PM
  2. [SOLVED] AVERAGEIF/AVERAGEIFS Divide by zero error
    By applebanana in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-03-2018, 10:26 AM
  3. Multiple Averageifs
    By kasermap in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-26-2017, 10:46 PM
  4. [SOLVED] AverageIF using multiple criteria in different columns in multiple worksheets
    By trubertiam in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-03-2014, 09:28 PM
  5. Combining an AVERAGEIF statement with OR
    By awcwa in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-03-2013, 03:44 PM
  6. [SOLVED] AVERAGEIFS using multiple ranges and multiple criteria
    By LindsayS in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2013, 01:49 PM
  7. Averageif or Averageifs not sure on which one to use
    By mt45 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2011, 01:56 PM

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