+ Reply to Thread
Results 1 to 2 of 2

Struggling with indirect sumifs

Hybrid View

  1. #1
    Registered User
    Join Date
    05-05-2017
    Location
    Brisbane
    MS-Off Ver
    2010
    Posts
    2

    Angry Struggling with indirect sumifs

    Hey Guys,

    Im trying to get the sumifs function to work across a number of tabs based off 3 criteria but it keeps coming back with an error, plz help.

    Formula is below:

    =IFERROR(SUMPRODUCT(SUMIFS(INDIRECT("'"&Store_Table[Store]&"'!C:C"),INDIRECT("'"&Store_Table[Store]&"'!$A$1"),$Y$5,INDIRECT("'"&Store_Table[Store]&"'!$1:$1"),$Y$10,INDIRECT("'"&Store_Table[Store]&"'!$A:$A"),$D$15)),"ERROR")

    Im trying to sum a column if the store name matches (Which is the first criteria), if the year matches (criteria 2) and if the account name matches (criteria 3).

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Struggling with indirect sumifs

    Looks like you've got a reference to A:1 when you meant a reference to A:A in the second term of the SUMIFS there (the first Criteria Range).

    And the Fourth input (the second Criteria Range) is being given a row when the other ranges are columns -- and since you're just telling it to work on the WHOLE ENTIRE RANGE instead of a selection, the fact that there are more rows than columns might also be a problem -- it would throw the #VALUE error.

    Also you've got it wrapped with a SUMPRODUCT that isn't really doing anything.

    Thus what you probably want is:
    =IFERROR(SUMIFS(INDIRECT("'"&Store_Table[Store]&"'!C:C"), INDIRECT("'"&Store_Table[Store]&"'!$A:$A"), $Y$5, INDIRECT("'"&Store_Table[Store]&"'!$B:$B"), $Y$10, INDIRECT("'"&Store_Table[Store]&"'!$A:$A"), $D$15), "ERROR")
    Note that the B:B might not be the right range.

    Also you're referencing A:A in two ranges, so if Y5 <> D15, then the function will always return zero.
    Last edited by ben_hensel; 02-08-2018 at 07:40 PM.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

+ 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] Unable to use SUMIFS with INDIRECT together
    By MariaPap in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2017, 09:26 AM
  2. Replies: 8
    Last Post: 05-08-2017, 08:51 PM
  3. Issues with INDIRECT and SUMIFS
    By dchubbock in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-25-2015, 09:25 AM
  4. Indirect Sumifs with Or Criteria
    By cloechl in forum Excel General
    Replies: 8
    Last Post: 07-28-2015, 08:05 AM
  5. Replace SUMIFS with INDIRECT
    By MrPeterified in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-21-2013, 05:19 PM
  6. Using Indirect with Sumifs
    By JohnGault82 in forum Excel General
    Replies: 8
    Last Post: 02-08-2011, 04:05 AM
  7. Excel 2007 : Sumifs and Indirect
    By MoonWeazel in forum Excel General
    Replies: 2
    Last Post: 10-14-2010, 05:11 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