+ Reply to Thread
Results 1 to 7 of 7

Averageifs #DIV/0!

  1. #1
    Registered User
    Join Date
    08-20-2020
    Location
    Apeldoorn, The Netherlands
    MS-Off Ver
    MS Office 365
    Posts
    22

    Averageifs #DIV/0!

    Averageifs #DIV/0!

    I’m having the following issue with an averageifs formula.

    I have thee averageifs formulas withing one formula (they have to add the three different column averages), however in some situations the criteria are not met.

    For example I want to find the average of produce cardamom for town S. It is possible that in one of the column there is no cardamom for town S, but in the other columns there is. So I still want to have the average of the other 2 columns. Instead I get the #DIV/0! error.

    What can be a solution to still get the average of the columns where the criteria are met?

    See attachment for an example (also the average should only be calculated if the number is bigger than 0).

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,454

    Re: Averageifs #DIV/0!

    If you are open to some remodelling, it would be much easier with a 3 column range
    Range 1 Town
    Range 2 Produce
    Range 3 Revenue

  3. #3
    Registered User
    Join Date
    08-20-2020
    Location
    Apeldoorn, The Netherlands
    MS-Off Ver
    MS Office 365
    Posts
    22

    Re: Averageifs #DIV/0!

    I'm always open to some remodelling. Could you be a bit more specific on what you mean by column range? How could I apply it in this situation?
    Last edited by rjsnl; 09-17-2020 at 08:53 AM.

  4. #4
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,936

    Re: Averageifs #DIV/0!

    Try this in cell K2:

    =AVERAGE(IF($A$2:$A$12=K$1,IF($B$2:$F$12=$J2,IF($C$2:$G$12>0,$C$2:$G$12))))

    Enter with Ctrl+Shift+Enter.

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,454

    Re: Averageifs #DIV/0!

    If producenr and revenuenr are important something like the attached?
    BTA it all depends what you are trying to achieve with your entire project
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-20-2020
    Location
    Apeldoorn, The Netherlands
    MS-Off Ver
    MS Office 365
    Posts
    22

    Re: Averageifs #DIV/0!

    Thanks! Does this work because it is not an averageif formula?

  7. #7
    Registered User
    Join Date
    08-20-2020
    Location
    Apeldoorn, The Netherlands
    MS-Off Ver
    MS Office 365
    Posts
    22

    Re: Averageifs #DIV/0!

    Thanks, I see. However my database is not like this. I'm trying to work with this database, because it will take a lot of time to remodel the whole database.

+ 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 help
    By parbynat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-01-2018, 05:50 AM
  2. Averageifs Help.
    By Thehomegroup in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-27-2017, 12:13 AM
  3. AVERAGEIFS can you use it with an or.
    By Vokey9 in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 02-26-2016, 05:05 PM
  4. [SOLVED] Averageifs
    By nd4spd in forum Excel General
    Replies: 7
    Last Post: 07-04-2014, 05:33 AM
  5. [SOLVED] Averageifs
    By mahershams in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-23-2014, 08:40 AM
  6. [SOLVED] Averageifs?
    By thelastflame in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-10-2014, 01:09 PM
  7. [SOLVED] AverageIfs, Max and Min
    By Odie2012 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2012, 07:57 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