+ Reply to Thread
Results 1 to 4 of 4

Sumproduct with two criteria over multiple sheets - formula error

  1. #1
    Valued Forum Contributor
    Join Date
    08-10-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    721

    Sumproduct with two criteria over multiple sheets - formula error

    Why does this formula not work????

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&tabs&"'!E18:E190"),$H10,INDIRECT("'"&tabs&"'!B18:B190"),$H11,INDIRECT("'"&tabs&"'!g18:g190")))

    Get a value error.

    As a reference, my formula:
    =SUMPRODUCT(SUMIF(INDIRECT("'"&tabs&"'!E18:E190"),$H10,INDIRECT("'"&tabs&"'!g18:g190")))

    works fine. I just need another condition (hence my use of SUMIFS) .
    Last edited by nickmax1; 03-26-2013 at 12:38 PM.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumproduct with two criteria over multiple sheets - formula error

    In SUMIF the SumRange comes last
    =SUMIF(Range,Criteria,SUMRange)

    BUT, in SUMIFS, the SumRange comes FIRST
    =SUMIFS(SUMRange,Range1,Criteria1,Range2,Criteria2)

  3. #3
    Valued Forum Contributor
    Join Date
    08-10-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    721

    Re: Sumproduct with two criteria over multiple sheets - formula error

    Jonmo you are a genius.

    Solved.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumproduct with two criteria over multiple sheets - formula error

    Great, glad to help out.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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