Getting #Invalid Operation error
Hey all,
Trying to find the total amount of items passing inspection, in a month's time (and also by week). My formulas are below. I keep getting an invalid operation error and not sure why.
=SUMIF(Date:Date, IFERROR(MONTH(@cell), 0) = MONTH(TODAY()), [Quantity Pass]:[Quantity Pass])
=SUMIF(Date:Date, >=(TODAY() - 7), [Quantity Pass]:[Quantity Pass])
Any help would be appreciated!
Answers
-
Try this: =SUMIFS([Quantity Pass]:[Quantity Pass], Date:Date, IFERROR(MONTH(@cell), 0) = MONTH(TODAY()))
=SUMIFS([Quantity Pass]:[Quantity Pass], Date:Date, AND(@cell <= TODAY(7), @cell >= TODAY()))
-
@Nic Larsen shouldn't that be a Today(-7)
=SUMIFS([Quantity Pass]:[Quantity Pass], Date:Date, AND(@cell <= TODAY(-7), @cell >= TODAY()))
-
@Mike Wilday Good catch. It's been too long of a week.
-
Haha. I feel ya!
-
:( Still getting the same error. It has to be something within the sheet itself, right? The syntax seems perfectly fine on both suggestions .
-
What type of column type do you have it set to? That's the only thing that comes to mind.
Formula in a text/number column type?
Date column set to a Date type of column?
-
According to formula errors,
This error is due to operators.
But I am not seeing that. I also sometimes see this error when there are errors in the date column. If you have any errors in the date column you would want to wrap your Month queries in an IFERROR formula or resolve your errors in the column.
-
@Nic Larsen Date column is set to date type, "Quantity Pass" is a number column. Has a column formula to calculate total (=[Quantity Inspected]@row - [Quantity Fail]@row).
-
I'm stumped.
I created a column formula and it worked fine. Are you summarizing any data at the top/bottom of these ranges that it might be interacting with? Are both formulas getting the error or just one of them?
I updated this with an additional IFERROR as Mike mentioned above:
=SUMIFS([Quantity Pass]:[Quantity Pass], Date:Date, IFERROR(MONTH(@cell), 0) = IFERROR(MONTH(TODAY()), 0))
-
Yeah. I have the same formula in a different sheet with no issues. I'm totally lost.
I got the same for both the week and month formulas. Even after using the suggested formulas you all so graciously suggested. :/
-
If you scroll through your date column are you seeing any errors? Errors in your date column frequently throw Invalid Operation errors in SUMIFS and COUNTIFS when using them in the criteria.
-
I'm going to shake our data entry folks. I finally found it...instead of "0" someone had put "None" in the Quantity Pass column. UGH.
THANK YOU all!
-
LOL. That is great. Gotta love helpful descriptive people!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!