+ Reply to Thread
Results 1 to 4 of 4

AVERAGEIFS Average_Range Problems

  1. #1
    Registered User
    Join Date
    04-30-2014
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    6

    AVERAGEIFS Average_Range Problems

    Thanks to any who have ideas on this one.

    I'm using AVERAGEIFS for the first time, which I understand to be essentially the same as COUNTIFS but with a range of values preceding the criteria ranges and criteria.

    I have a COUNTIFS function that works just fine. I need to now take an average of a range related to this COUNTIFS result. My problem is that the average_range preceding the COUNTIFS criteria produces "#VALUE!" if the range is on the same tab as the COUNTIFS criteria (it's coming from a large database on another tab). The fact that the database is on a different tab than the formula was not a problem for the COUNTIFS function, but it is for the AVERAGEIFS function.

    If I move the average_range column that I'm trying to average to the same tab as the summary data, the funny thing is that this produces the correct average:

    =AVERAGEIFS($CV$2:$CV$4500,'Ex.5.2 Complete Data'!$R$2:$R$4500,"="&$D$44,'Ex.5.2 Complete Data'!$N$2:$N$4500,"="&$B48,'Ex.5.2 Complete Data'!$CS$2:$CS$4500,">="&$F$44,'Ex.5.2 Complete Data'!$CS$2:$CS$4500,"<="&$H$44)

    While having the average_range column in the original database produces #VALUE!

    =AVERAGEIFS('Ex.5.2 Complete Data'!$CV$2:$CV$4501,'Ex.5.2 Complete Data'!$R$2:$R$4500,"="&$D$44,'Ex.5.2 Complete Data'!$N$2:$N$4500,"="&$B47,'Ex.5.2 Complete Data'!$CS$2:$CS$4500,">="&$F$44,'Ex.5.2 Complete Data'!$CS$2:$CS$4500,"<="&$H$44)

    Any ideas? THANK YOU!

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,697

    Re: AVERAGEIFS Average_Range Problems

    I think you just have the wrong size range. In this version

    =AVERAGEIFS('Ex.5.2 Complete Data'!$CV$2:$CV$4501,'Ex.5.2 Complete Data'!$R$2:$R$4500,"="&$D$44,'Ex.5.2 Complete Data'!$N$2:$N$4500,"="&$B47,'Ex.5.2 Complete Data'!$CS$2:$CS$4500,">="&$F$44,'Ex.5.2 Complete Data'!$CS$2:$CS$4500,"<="&$H$44)

    The range ends at row 4501, where other ranges are 4500 - mismatched ranges will give you #VALUE! error - change that one to 4500 and it should work OK
    Audere est facere

  3. #3
    Registered User
    Join Date
    04-30-2014
    Location
    Washington DC
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: AVERAGEIFS Average_Range Problems

    This was it! Thank you! Brilliant - didn't know that ranges were such a big deal but it makes sense.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,254

    Re: AVERAGEIFS Average_Range Problems

    Hi millonario and welcome to the forum,

    Count can deal with both Text and Numbers. Average will only work with numbers. Do you have some TEXT in the range you are trying to average?

    Another possible problem is the criteria might need quotes around it. See http://www.ozgrid.com/Excel/count-if.htm for an example.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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?
    By thelastflame in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-10-2014, 01:09 PM
  2. [SOLVED] averageifs help!
    By tgosman in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-30-2013, 09:34 PM
  3. [SOLVED] AverageIf need wider average_range than range
    By kovarian in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-30-2013, 01:07 PM
  4. [SOLVED] AverageIfs, Max and Min
    By Odie2012 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2012, 07:57 PM
  5. Averageifs
    By rwtrader99 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2010, 03:26 AM

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