SUMIFS formula
In my Sheet Summary, I am using the formula =SUMIFS(Shipped:Shipped, [Date Manufacturing]:[Date Manufacturing], YEAR(@cell) = 2023) + SUMIFS(Pending:Pending, [Date Manufacturing]:[Date Manufacturing], YEAR(@cell) = 2023) + SUMIFS(Scheduled:Scheduled, [Date Manufacturing]:[Date Manufacturing], YEAR(@cell) = 2023) across four separate sheets. All of the sheets have the same column names. The formula is working for three of the four sheets. On the sheet that it is not working on, it reads "#invalid data type". If I delete the SUMIFS(Scheduled:Scheduled, [Date Manufacturing]:[Date Manufacturing], YEAR(@cell) = 2023) part of the formula, I no longer get the invalid message, but the formula doesn't include the sum of the Scheduled column. There must be a problem with the Scheduled column in this fourth sheet, but I cannot figure out what the issue is. Please help.
Answers
-
Hi @Dina B,
Do you have a row with a value in Scheduled, but not in the Date Manufacturing or the other columns? This would trigger the error as the formula can't match the value to a date to check and would explain why the remainder of the formula works without the Scheduled SUMIF being included.
-
Try adjusting each of your YEAR functions like so:
YEAR(@cell) = 2023
changes to
IFERROR(YEAR(@cell), 0) = 2023
-
@ Nick Korna Yes! That was it! Thank you SO much!!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!