+ Reply to Thread
Results 1 to 6 of 6

AVERAGEIFS returning #DIV/0!

  1. #1
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    AVERAGEIFS returning #DIV/0!

    Hi, Using Excel 2007 I'm trying to use the AVERAGEIFS function to average a column based on multiple criteria, but it keeps returning #DIV error which I don't understand.

    For example, with this basic data:
    data.jpg

    I want to find the average of column B where A is Apple or Orange, which should be the first 8 rows averaging 4.5.

    But using this formula, I get #Div
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Any idea what I'm doing wrong?
    Last edited by MoldyBread; 03-21-2019 at 05:52 AM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: AVERAGEIFS returning #DIV/0!

    Try:

    =AVERAGE(IF(A1:A13={"Apple","Orange"},B1:B13,""))

    Array formula, enter with Ctrl+Shift+Enter.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,721

    Re: AVERAGEIFS returning #DIV/0!

    Please add the version of Excel you are using to your user profile - thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: AVERAGEIFS returning #DIV/0!

    Quote Originally Posted by Phuocam View Post
    Try:

    =AVERAGE(IF(A1:A13={"Apple","Orange"},B1:B13,""))

    Array formula, enter with Ctrl+Shift+Enter.
    Thank you, that does work, but it isn't clear why the AVERAGEIFS doesn't since that would seem to be the purpose of that function?

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: AVERAGEIFS returning #DIV/0!

    Quote Originally Posted by MoldyBread
    it isn't clear why the AVERAGEIFS doesn't since that would seem to be the purpose of that function?
    The criterion in an AVERAGEIFS, COUNTIFS etc are "AND" based rather than "OR".

    So, given your example, it is not possible for a given value in A1:A13 to be both Apple and Orange, simultaneously.
    Last edited by XLent; 03-22-2019 at 08:14 AM. Reason: typo in narrative

  6. #6
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: AVERAGEIFS returning #DIV/0!

    OK that makes sense. Thank you.

+ 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 function not returning correct average
    By CSherman in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-02-2017, 11:11 PM
  2. Need help with averageifs function - keeps returning #DIV/0
    By JAWilliams in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-26-2015, 01:38 AM
  3. [SOLVED] Averageifs
    By yuenk in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-07-2015, 10:59 AM
  4. [SOLVED] Averageifs returning #DIV/0 error
    By kbotta in forum Excel General
    Replies: 8
    Last Post: 10-09-2014, 08:38 AM
  5. Averageifs.
    By lokpal.panwar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-10-2014, 07:09 AM
  6. [SOLVED] Averageifs returning DIV/0 errors even though there are values
    By lifeseeker1019 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-12-2013, 02:19 AM
  7. Averageifs returning Value?
    By katja328 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-08-2009, 06:20 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