+ Reply to Thread
Results 1 to 4 of 4

Sumproduct for finding averages

Hybrid View

ammartino44 Sumproduct for finding... 10-17-2013, 05:46 PM
Pete_UK Re: Sumproduct for finding... 10-17-2013, 07:53 PM
ajryan88 Re: Sumproduct for finding... 10-17-2013, 08:04 PM
ajryan88 Re: Sumproduct for finding... 10-17-2013, 08:05 PM
  1. #1
    Forum Contributor
    Join Date
    08-14-2013
    Location
    LA Baby!!
    MS-Off Ver
    Excel 2007
    Posts
    1,598

    Sumproduct for finding averages

    I have attached a spreadsheat. I am using the following formula =SUMPRODUCT(($D$6:$BX$6=DH$6)*($D10:$BX10)*($D$9:$BX$9))/SUMIFS($D$9:$BX$9,$D$6:$BX$6,DH$6) in cell DH10 to calculate the YTD average for row 10 ($ amount) and 12 (unit number). For some reason the average dollar amount is coming in way too small. Any help? Thanks.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,424

    Re: Sumproduct for finding averages

    An average is worked out as a sum divided by a count of the number of items. Why don't you use SUMIFS()/COUNTIFS ? Or alternatively, use AVERAGEIFS.

    Hope this helps.

    Pete

  3. #3
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Sumproduct for finding averages

    Hi,

    There is something wrong with your formula, but I'm not sure what it is because I don't understand exactly what you are attempting to calculate. So I have 2 suggestions which may (hopefully) get you on your way:

    1. Change the formula in DH10 to
    Formula: copy to clipboard
    =SUMPRODUCT(($D$6:$BX$6=DH$6)*($D10:$BX10)*($D$9:$BX$9))/SUMIFS($D$9:$BX$9,$D$6:$BX$6,DH$6,$D$10:$BX$10,">0")
    This gives an average of $188.29.
    2. Change the formula in DH10 to
    Formula: copy to clipboard
    =SUMPRODUCT(($D$6:$BX$6=DH$6)*($D11:$BX11)*($D$9:$BX$9))/SUMIFS($D$9:$BX$9,$D$6:$BX$6,DH$6)
    This gives an average of $210.03.

    I hope one of these is the solution that you are looking for

  4. #4
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Sumproduct for finding averages

    Pete, the OP is using SUMIFS because the divisor is the sum of the cells in row 9, as these cells represent the number of units to average over

+ 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. Finding & using row number to calculate averages
    By magnus.blomquist in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2013, 06:27 AM
  2. Problem with finding Averages from different files
    By Settler7 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-08-2013, 12:52 AM
  3. Finding averages
    By globetrotter532 in forum Excel General
    Replies: 18
    Last Post: 12-09-2010, 05:45 PM
  4. Finding Averages between various dates
    By Horia in forum Excel General
    Replies: 6
    Last Post: 07-19-2010, 04:57 AM
  5. Finding Averages between dates for groups
    By JoshD75 in forum Excel General
    Replies: 6
    Last Post: 04-25-2009, 10:20 AM

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