+ Reply to Thread
Results 1 to 6 of 6

How to get the average of multiple averageifs with the same conditions

  1. #1
    Registered User
    Join Date
    10-14-2017
    Location
    Detroit, USA
    MS-Off Ver
    2013
    Posts
    7

    How to get the average of multiple averageifs with the same conditions

    I need to how how about doing a averageifs with multiple for a few different names. for instance I can do one averageifs with the following code:

    =AVERAGEIFS($H:$H,$C:$C,"04PPS",$H:$H,">0")

    but what if I wanted the average to include the values from :08PPS" with the same conditions as well?

    What if I wanted the avearge to include "04PPS", "08PPS", AND AEROP all with the same conditions?

    image of the sheet:

    Capture.JPG

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: How to get the average of multiple averageifs with the same conditions

    With the data you've shown
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    would do :-)


    But probably situation is more complicated.
    If just 3 (may be 4 or 5) types of values in column C are to be incluided, I'd probably go just for:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Looks long, but is simple total sum for 3 conditions divided by total count for the same conditions.

    For more types more compact formula shall be developed.
    Best Regards,

    Kaper

  3. #3
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to get the average of multiple averageifs with the same conditions

    Assuming that your data is in A2:A14 (headers in row 1), try this:

    =AVERAGE(IF((($C$2:$C$14="04PPS")+($C$2:$C$14="08PPS")+($C$2:$C$14="AEROP"))*($H$2:$H$14>0),$H$2:$H$14)) Ctrl Shift Enter

    or

    =SUM(SUMIFS($H:$H,$C:$C,{"04PPS","08PPS","AEROP"},$H:$H,">0"))/SUM(COUNTIFS($C:$C,{"04PPS","08PPS","AEROP"},$H:$H,">0"))
    Last edited by 63falcondude; 10-30-2017 at 10:02 AM. Reason: Included second formula

  4. #4
    Registered User
    Join Date
    10-14-2017
    Location
    Detroit, USA
    MS-Off Ver
    2013
    Posts
    7

    Re: How to get the average of multiple averageifs with the same conditions

    awesome, both methods work

    thanks a ton

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: How to get the average of multiple averageifs with the same conditions

    Glad we could help. Thanks for the rep!

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

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,619

    Re: How to get the average of multiple averageifs with the same conditions

    Glad to hear it workad and thanks for reputation point too

+ 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. [SOLVED] AverageIfs with two conditions in one reference
    By NikhilDixit in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-04-2017, 03:48 AM
  2. AverageIFS with conditions not calculating right
    By dbaker4020 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-30-2013, 12:20 PM
  3. Averageifs - based on multiple dates average time values
    By gavinp in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-20-2013, 04:32 PM
  4. Average with multiple conditions
    By Littleoladywho in forum Excel General
    Replies: 6
    Last Post: 06-25-2012, 12:13 PM
  5. Excel 2007 : AVERAGEIFS including several conditions
    By milliemoo in forum Excel General
    Replies: 6
    Last Post: 11-16-2011, 11:39 AM
  6. Excel 2007 : AVERAGEIFS - a few conditions put together
    By stojko89 in forum Excel General
    Replies: 6
    Last Post: 05-26-2009, 12:14 AM
  7. Replies: 1
    Last Post: 03-12-2009, 06:33 AM

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