Adding the attachment
Adding the attachment
Last edited by onepoefan; 05-16-2016 at 07:00 PM. Reason: Adding an attachment
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
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.
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")),)
Try this in I7 and fill down. Copy and paste to other sections.Formula:
Please Login or Register to view this content.
Dave
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.
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.
That works perfectly. Thank you soooo much!
You are welcome. We appreciate the feedback.![]()
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
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.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.
Thank you! I just had a typo. I updated those values and it works now.
Good to hear. Thanks for letting us know.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks