+ Reply to Thread
Results 1 to 13 of 13

Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

  1. #1
    Registered User
    Join Date
    05-16-2016
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    Adding the attachment
    Attached Files Attached Files
    Last edited by onepoefan; 05-16-2016 at 07:00 PM. Reason: Adding an attachment

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    Hello & Welcome to the Forum,

    Can you show us what the formula looks like and what you are trying to achieve?

    Please add some details/explanation...
    Last edited by jeffreybrown; 05-16-2016 at 07:13 PM.
    HTH
    Regards, Jeff

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    They did have an explanation but it looks like it got deleted when they edited the post to add the attachment.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    05-16-2016
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    Sorry, I think I accidentally deleted my original explanation:

    Hi Excel Experts,
    This formulas isn't working for me, and I've tried several variations.

    To reproduce the issue please paste the formula into sheet SA cell I7.
    Expected results: for Costco/Cherry Soda Week 1/2/16 (“2016*01”) = 100 cases.
    Actual results: It is returning no value when I paste it into sheet SA cell I7.

    Notes:
    I'm using this combination for arguments because I need excel to search multiple sheets and return the total number of cases per week for each customer/product. For Costco/Cherry Soda, etc.
    SA is the sheet the results-total number of cases should be posted.
    Sheets SD and SD2 are the sheets it should search.
    I have two sheets that look identical because my IT person says I'll too many records to combine them into one. This is just a small sample.
    “2016*01” on sheets SD and SD2 = 1/2/16 on sheet SA

    I setup a table named SheetsTable to use with this formula. Both sheet names SD and SD2 are included in this table.
    Can you tell me what I'm doing wrong or suggest a simpler alternative?
    Thanks in advance!

    My formula:
    =IFERROR(SUMPRODUCT(SUMIFS(INDIRECT(“‘”&SheetsTable[Sheets]&”‘!F:F”),
    INDIRECT(“‘”&SheetsTable[Sheets]&”‘!A:A”),$A7,
    INDIRECT(“‘”&SheetsTable[Sheets]&”‘!D:D”),$D7,
    INDIRECT(“‘”&SheetsTable[Sheets]&”‘!G:G”),"2016*01")),)
    Attached Files Attached Files

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

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    Try this in I7 and fill down. Copy and paste to other sections.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

  6. #6
    Registered User
    Join Date
    05-16-2016
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    Thanks Dave, this is really close.
    When I pasted it into cell I17, it returned 175. The total cases for Cherry Soda for two different weeks:
    Week one = [2016*01 on sheet SD =1/2/16 on sheet SA]
    Week two = [2016*02 on sheet SD =1/9/16 on sheet SA]
    I'd like excel to return 100 since this is the total number of cases for
    CA\COSTCO\CHERRY SODA\2016*01.
    Is it possible to tweak the formula to return this result?
    Thank you for your time.

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

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    Edit I forgot to mention. You'll need to put NY into cell A16 in order for that row to work.

    OK. Try this

    =SUMPRODUCT(SUMIFS(INDIRECT("'"&{"SD";"SD2"}&"'!F2:F100"),INDIRECT("'"&{"SD";"SD2"}&"'!C2:C100"),$D7,INDIRECT("'"&{"SD";"SD2"}&"'!A2:A100"),$B7,INDIRECT("'"&{"SD";"SD2"}&"'!B2:B100"),$C7,INDIRECT("'"&{"SD";"SD2"}&"'!E2:E100"),$A7,INDIRECT("'"&{"SD";"SD2"}&"'!D2:D100"),$E7&"*",INDIRECT("'"&{"SD";"SD2"}&"'!g2:g100"),YEAR(I$6)&"*"&I$5))
    Last edited by FlameRetired; 05-16-2016 at 10:47 PM.

  8. #8
    Registered User
    Join Date
    05-16-2016
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    That works perfectly. Thank you soooo much!

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

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    You are welcome. We appreciate the feedback.

  10. #10
    Registered User
    Join Date
    05-16-2016
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    Hi John, so sorry I haven't responded again to the other thread. I've been working on another project. I have another question about this formula. It worked perfectly in my test file, and I assumed if I changed the tab and cell references to match my real file it would work just fine too.
    It doesn't return an error, I just get zeros. I changed every tab and cell reference except this: YEAR(I$6)&"*"&I$5)
    What does I$6 and I$5 refer to? Perhaps that's the problem.
    Thanks,
    Sylvia

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

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    It doesn't return an error, I just get zeros. I changed every tab and cell reference except this: YEAR(I$6)&"*"&I$5)
    What does I$6 and I$5 refer to? Perhaps that's the problem.
    That refers to the dates in row 6 and the week in row 5. It builds a text string out of those to match the format of the data in the BUS_WEEK column of the source sheets.

  12. #12
    Registered User
    Join Date
    05-16-2016
    Location
    Orange County, CA
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    Thank you! I just had a typo. I updated those values and it works now.

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

    Re: Formula with SUMPRODUCT,SUMIFS and INDIRECT is not returning the expected results.

    Good to hear. Thanks for letting us know.

+ 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. Formula not returning expected results
    By Mlabrec in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-07-2016, 08:08 PM
  2. Sumifs returning inconsistent results
    By WilliamWelch in forum Excel General
    Replies: 9
    Last Post: 03-26-2015, 05:08 PM
  3. CHOOSE Function not returning expected results.
    By khughes46 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2014, 06:32 AM
  4. Replies: 3
    Last Post: 06-19-2014, 10:30 AM
  5. [SOLVED] SUMPRODUCT formula not returning correct results
    By CityInspector in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 04:04 PM
  6. Lookup not returning expected results
    By syphlix in forum Excel General
    Replies: 4
    Last Post: 03-08-2011, 04:16 PM
  7. Sumproduct formula not giving expected results
    By Shocked in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-30-2008, 03:12 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