SUMIFS from 2 sheets
I use the formula below to add up work amounts on a weekly basis. rows get moved to another sheet once they are shipped. To keep history I need it to check from both sheets.
=SUMIFS({Master JOBV Range 1}, {MASTER SCHEDULE Range 1}, AND(IFERROR(WEEKNUMBER(DATEONLY(@cell)), 0) = Week@row, IFERROR(YEAR(DATEONLY(@cell)), 0) = 2022), {MASTER DATABASE Range 1}, "Ed Bowen")
Best Answers
-
Hi @ginamt3
If you're referencing two different sheets, you will need to add together two separate formulas (you can't reference two sheets within the same function).
E.g:
=SUMIFS(sheet 1 formula) + SUMIFS(sheet 2 formula)
So if this is your formula for the one sheet, re-create the same formula and add it to the end:
=SUMIFS({Master JOBV Range 1}, {MASTER SCHEDULE Range 1}, AND(IFERROR(WEEKNUMBER(DATEONLY(@cell)), 0) = Week@row, IFERROR(YEAR(DATEONLY(@cell)), 0) = 2022), {MASTER DATABASE Range 1}, "Ed Bowen") + SUMIFS({Sheet 2 Master JOBV Range 1}, {Sheet 2 MASTER SCHEDULE Range 1}, AND(IFERROR(WEEKNUMBER(DATEONLY(@cell)), 0) = Week@row, IFERROR(YEAR(DATEONLY(@cell)), 0) = 2022), {Sheet 2 MASTER DATABASE Range 1}, "Ed Bowen")
Let me know if this makes sense!
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now -
worked like a charm! THANK YOU.
Answers
-
Hi @ginamt3 ,
Are you having issues with the formula not working correctly?
If so could you send a screen shot of your formula within smartsheet to assist in identifying the issue?
Cheers.
G.
-
Hi @ginamt3
If you're referencing two different sheets, you will need to add together two separate formulas (you can't reference two sheets within the same function).
E.g:
=SUMIFS(sheet 1 formula) + SUMIFS(sheet 2 formula)
So if this is your formula for the one sheet, re-create the same formula and add it to the end:
=SUMIFS({Master JOBV Range 1}, {MASTER SCHEDULE Range 1}, AND(IFERROR(WEEKNUMBER(DATEONLY(@cell)), 0) = Week@row, IFERROR(YEAR(DATEONLY(@cell)), 0) = 2022), {MASTER DATABASE Range 1}, "Ed Bowen") + SUMIFS({Sheet 2 Master JOBV Range 1}, {Sheet 2 MASTER SCHEDULE Range 1}, AND(IFERROR(WEEKNUMBER(DATEONLY(@cell)), 0) = Week@row, IFERROR(YEAR(DATEONLY(@cell)), 0) = 2022), {Sheet 2 MASTER DATABASE Range 1}, "Ed Bowen")
Let me know if this makes sense!
Cheers,
Genevieve
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now -
worked like a charm! THANK YOU.
-
Wonderful! I'm glad I could help 🙂
Join us at Smartsheet ENGAGE 2024 🎉
October 8 - 10, Seattle, WA | Register now
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.5K Get Help
- 367 Global Discussions
- 202 Industry Talk
- 432 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 447 Show & Tell
- 29 Member Spotlight
- 1 SmartStories
- 285 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!