+ Reply to Thread
Results 1 to 8 of 8

AVERAGEIF array formula is only averaging the first column in average_range.

Hybrid View

  1. #1
    Registered User
    Join Date
    07-09-2019
    Location
    USA
    MS-Off Ver
    17
    Posts
    3

    AVERAGEIF array formula is only averaging the first column in average_range.

    AVERAGEIF array formula is only averaging the first column in average_range. It is treating {=AVERAGEIF(D1:D38),F50,B1:C38)} as if it was {=AVERAGEIF(D1:D38),F50,B1:B38)}.


    Here's what it looks like on my spreadsheet. F50 is the cell where I'd input a number 1-12 (although column D only currently has 3,5,6,7, and 9, so many numbers return #DIV/0! currently).
    averageifproblem.PNG


    I've seen other people have this problem, but the solution has been to turn their normal formula into an array formula, which I have done to no avail. Appreciate the help.

    -Sig

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: AVERAGEIF array formula is only averaging the first column in average_range.

    Hello Sig.
    Welcome to the forum.

    I've seen other people have this problem, but the solution has been to turn their normal formula into an array formula, which I have done to no avail.
    Try array entering
    Formula: copy to clipboard
    =AVERAGE(IF(D1:D38=F50,B1:C38))
    Dave

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: AVERAGEIF array formula is only averaging the first column in average_range.

    Hello and welcome to the forum.

    Try instead the array formula

    Formula: copy to clipboard
    =AVERAGE((D1:D38=F50)*(B1:C38))*2


    where the 2 is the number of columns in the range to be averaged.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    07-09-2019
    Location
    USA
    MS-Off Ver
    17
    Posts
    3

    Re: AVERAGEIF array formula is only averaging the first column in average_range.

    I've rearranged my data and tried an alternate approach with the AVERAGEIFS formula. However, I am getting the #VALUE! error.

    Here is the formula: =AVERAGEIFS(Toppers!C1:D460,Toppers!A1:A460,Calculator!B2,Toppers!B1:B460,Calculator!B3)

    Referencing:
    Attachment 631537 , Attachment 631538


    I've read that my criteria_range and sum_range must be the same shape and size. I'm not sure if that is the issue though because when I modified my criteria ranges to be 2x460 that did not get rid of the #Value! error.


    Thank you for your original reply, but this approach is better than my original one (so long as I can figure it out), so I started this before I saw anyone's reply. Hopefully you can help.
    Last edited by sigaha; 07-09-2019 at 03:11 PM.

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: AVERAGEIF array formula is only averaging the first column in average_range.

    Would you upload the workbook please?

  6. #6
    Registered User
    Join Date
    07-09-2019
    Location
    USA
    MS-Off Ver
    17
    Posts
    3

    Re: AVERAGEIF array formula is only averaging the first column in average_range.

    I worked around the problem just by averaging my two columns into one column, and then making that my average_range. Formula looks like this now: =AVERAGEIFS(Toppers!E1:E460,Toppers!A1:A460,Calculator!B2,Toppers!B1:B460,Calculator!B3).

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: AVERAGEIF array formula is only averaging the first column in average_range.

    Caution is needed when averaging averages since most of the time it's not arithmetically correct.

    It's difficult to know whether that applies in your case since you haven't supplied the workbook but i suggest you check.

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,240

    Re: AVERAGEIF array formula is only averaging the first column in average_range.

    Thanks for letting us know.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. 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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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] Averaging Problem - Can AVERAGEIF be nested inside IF?
    By jgf310 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-21-2019, 09:40 PM
  2. [SOLVED] AVERAGEIF with multiple columns average_range
    By Shurov in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-11-2014, 09:51 AM
  3. Formula for Averaging Array Given Multiple Criteria
    By celestealexandra in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-20-2014, 11:56 AM
  4. [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
  5. [SOLVED] AVERAGEIF Formula on an array of data
    By Shoto in forum Excel General
    Replies: 2
    Last Post: 04-19-2012, 02:20 AM
  6. Suppress #DIV/0! when averaging results using AverageIF function
    By KeepCallmAndExcel in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-18-2012, 07:58 AM
  7. [SOLVED] Averaging Array Formula
    By Michael Link in forum Excel General
    Replies: 5
    Last Post: 12-14-2005, 06:45 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