SUMIFS with ranges on multiple sheets
![EagonA](https://us.v-cdn.net/6031209/uploads/defaultavatar/nWRMFRX6I99I6.jpg)
Hi there!
I have a metrics sheet that I use to calculate the number or weeks each account manager booked on a given week of the year. The formula I have currently that works references one sheet only. However, that source sheet has an automation set up so that once the booking is completed, the row moves to an archived sheet. Once it does that, the number of weeks booked on the metrics sheet will no longer reflect those weeks. So my thought is to add on to the original formula in the metric sheet to also check the archived sheet as a second range. Can I combine the 2 ranges in the existing formula, or will I need to do a SUMIFS + SUMIFS? When I have tried the SUMIFS + SUMIFS, it has not worked for me.
Here's the metric sheet:
Here's the current formula referencing the 1 sheet:
=SUMIFS({New Booking Weeks}, {Supplier AM}, $[Supplier AM]@row, {Date Booked}, IFERROR(WEEKNUMBER(@cell), 0) = [06-Jan]$1, {Date Booked}, IFERROR(YEAR(@cell), 0) = [06-Jan]$2)
Here's my attempt at the SUMIFS + SUMIFS that isn't working:
=SUMIFS({New Booking Weeks}, {Supplier AM}, $[Supplier AM]@row, {Date Booked}, IFERROR(WEEKNUMBER(@cell), 0) = [06-Jan]$1, {Date Booked}, IFERROR(YEAR(@cell), 0) = [06-Jan]$2) + SUMIFS({Archived Weeks Booked}, {Supplier AM}, $[Supplier AM]@row, {Date Booked1}, IFERROR(WEEKNUMBER(@cell), 0) = [06-Jan]$1, {Date Booked1}, IFERROR(YEAR(@cell), 0) = [06-Jan]$2)
Thanks!
@Paul Newcome, the formula guru 😀
Best Answer
-
In your "new" formula, you are referencing {Supplier AM} in both of your SUMIFS statements. Should one of these be something like {Supplier AM1}?
Answers
-
In your "new" formula, you are referencing {Supplier AM} in both of your SUMIFS statements. Should one of these be something like {Supplier AM1}?
-
Yes, that was exactly it! I needed to update that reference, as well. Simple! Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.3K Get Help
- 445 Global Discussions
- 144 Industry Talk
- 477 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 151 Just for fun
- 72 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!