+ Reply to Thread
Results 1 to 3 of 3

AVERAGEIFS with SUMPRODUCT

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    Costa Rica
    MS-Off Ver
    Excel 2010
    Posts
    59

    Question AVERAGEIFS with SUMPRODUCT

    Hello people, I am trying to use AVERAGEIFS with multiple sheets, I am using these formula (taken from working SUMIFS formula):

    =SUMPRODUCT(AVERAGEIFS(INDIRECT("'"&$A$16:$A$21&"'!E:E"),INDIRECT("'"&$A$16:$A$21&"'!C:C"),C3))

    Where A16:A21 are the sheet references, E:E should be the column to average with D:D but not sure how to add D:D to the formula, C:C is the column with the criteria range and C3 is the criteria.

    So far it gives me a Divide by 0 Error.

    Thanks very much!
    Last edited by figo12; 11-08-2013 at 12:34 PM.

  2. #2
    Forum Contributor amit.wilson's Avatar
    Join Date
    07-09-2013
    Location
    Gotham
    MS-Off Ver
    Excel for Mac 2011
    Posts
    283

    Re: AVERAGEIFS with SUMPRODUCT

    Hi - can you upload a sample sheet to help explain the problem?

    Cheers

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: AVERAGEIFS with SUMPRODUCT

    Hi,

    an attempt. Again a sample file would helpful

    =IFERROR(SUMPRODUCT(SUMIF(INDIRECT("'"&$A$16:$A$21&"'!E:E"),INDIRECT("'"&$A$16:$A$21&"'!C:C"),C3))/SUMPRODUCT(COUNTIF(INDIRECT("'"&$A$16:$A$21&"'!C:C"),C3)),0)

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

+ 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, Max and Min
    By Odie2012 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-11-2012, 07:57 PM
  2. Replies: 4
    Last Post: 09-21-2010, 04:08 AM
  3. AverageIfs
    By DMAN11 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-07-2010, 05:31 PM
  4. Averageifs
    By rwtrader99 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-10-2010, 03:26 AM
  5. Averageifs
    By Dgates in forum Excel General
    Replies: 2
    Last Post: 04-06-2010, 07:50 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