+ Reply to Thread
Results 1 to 12 of 12

Averageifs

  1. #1
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Averageifs

    My formula will work when I'm averaging one person but not two. I'm need to get an average with 3 criterias. In column N I have the names and in column P I have the # of sales. I need the average the two people when they have sales that are >30.

    My Formula
    =AVERAGEIFS(P:P,N:N,R9,N:N,R10,P:P,R11)

    Index
    R9=Name 1
    R10=Name 2
    R11=>30

  2. #2
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Averageifs

    This is an ugly way to do it, but it works:
    Please Login or Register  to view this content.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

  3. #3
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Re: Averageifs

    This didnt work. Its giving me the #DIV/0 error which is what I'm getting with my formula aswell. Is it not possible to use Averageifs when theres more than one criteria in one column?

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

    Re: Averageifs

    I would suggest a helper column, say column S for example
    S1: =OR(N1=R$9,N1=R$10) and fill down

    Then use
    =AVERAGEIFS(P:P,S:S,TRUE,P:P,R11)

  5. #5
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: Averageifs

    This could also work as an array formula. You have to enter it by pressing CTRL+SHIFT+ENTER instead of just ENTER.
    Please Login or Register  to view this content.
    I like the helper column idea though. That's going to be the simplest way to handle it.
    Last edited by nigelbloomy; 07-07-2015 at 09:55 AM. Reason: Removed INDEX section.

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

    Re: Averageifs

    Quote Originally Posted by yuenk View Post
    Is it not possible to use Averageifs when theres more than one criteria in one column?
    Depends on what those criteria are.
    The criteria in Averageifs (and countifs and sumifs) are AND criteria. They must both be true.
    If it's possible for BOTH criteria to be true for any single cell, then Yes.
    Example, >5 AND <10, it is possible for a single cell to be both Greater than 5 AND less than 10 (6 7 8 and 9)

    If it's NOT possible for BOTH criteria to be true for any single cell, then No.
    Example, "x" and "y", it's not possible for a single cell to be BOTH "x" AND "y"..

  7. #7
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Re: Averageifs

    Thanks I'll use this method.

    Just curious. I understand what youre saying that a single cell cant contain X and Y. If the column contains X and Y but not in the same cell why didnt my formula work?

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

    Re: Averageifs

    Because it checks every single cell one at a time, and evaluates BOTH the criteria for EACH single Cell.
    And only counts each one where BOTH criteria are TRUE.

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

    Re: Averageifs

    Maybe this will help clear it up.
    Take your original attempt
    =AVERAGEIFS(P:P,N:N,R9,N:N,R10,P:P,R11)

    This is all assuming R9 and R10 are NOT the same value (if they are the same, then what's the point..)

    P1 will be included in the average IF: N1=R9 AND N1=R10 AND P1=R11 (N1 cannot be equal to BOTH R9 AND R10)
    P2 will be included in the average IF: N2=R9 AND N2=R10 AND P2=R11 (N2 cannot be equal to BOTH R9 AND R10)
    P3 will be included in the average IF: N3=R9 AND N3=R11 AND P3=R11 (N3 cannot be equal to BOTH R9 AND R10)

  10. #10
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Re: Averageifs

    I understand. I looked at it as if any of those statements were true it would calculate it regardless if one of the three were false. But now that you explained it further I see why my formula doesnt work.

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

    Re: Averageifs

    You're welcome.

  12. #12
    Forum Contributor
    Join Date
    11-19-2014
    Location
    United States
    MS-Off Ver
    2010
    Posts
    137

    Re: Averageifs

    ha Thanks Jonmo

+ 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
    By rbirch in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-27-2015, 02:59 PM
  2. [SOLVED] Averageifs
    By mahershams in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2014, 08:40 AM
  3. [SOLVED] AverageIfs, Max and Min
    By Odie2012 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2012, 07:57 PM
  4. Averageifs
    By rwtrader99 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2010, 03:26 AM
  5. Averageifs
    By Dgates in forum Excel General
    Replies: 2
    Last Post: 04-06-2010, 07:50 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