SUMIFS and Contains conditions
Hi all- I have a formula that refers to another sheet to sum costs based on some criteria:
=SUMIFS({Professional Services Project Costs Amount}, {Professional Services Project Costs Grant Code}, $[Budget Allocated]$8, {Professional Services Project Costs Category}, CONTAINS([Budget Category]28, @cell))
I'd like to add another condition, which is to find the name "Denise" in a text column where we put notes, so I tried the following, but got INCORRECT ARGUMENT:
=SUMIFS({Professional Services Project Costs Amount}, {Professional Services Project Costs Grant Code}, $[Budget Allocated]$8, {Professional Services Project Costs Category}, CONTAINS([Budget Category]28, @cell), {Goods & Services Project Costs Notes}, CONTAINS("Denise"))
Any Tips?
Best Answer
-
It should be working. Hmm...
Log out
Clear your cookies and cache
Log back in
See if that clears things up for you.
Answers
-
You just need an @cell reference is all...
=SUMIFS({Professional Services Project Costs Amount}, {Professional Services Project Costs Grant Code}, $[Budget Allocated]$8, {Professional Services Project Costs Category}, CONTAINS([Budget Category]28, @cell), {Goods & Services Project Costs Notes}, CONTAINS("Denise", @cell))
-
Paul, Unfortunately I am still getting an Incorrect Argument message with the @cell....
(new to this community, do I need to @ you when I respond? @Paul Newcome )
-
That's odd. The syntax is otherwise correct. Can you provide a screenshot of the formula in the sheet similar to the screenshot here?
-
Maybe this makes a difference- i see the error code is "Incorrect Argument Set"
-
The @cell should be inside of the CONTAINS function like I have it in the formula above.
CONTAINS("Denise", @cell))
-
Oof, still no-
-
Are you still getting the same error?
-
Yes, INCORRECT ARGUMENT SET
It doesn't like the addition of the last condition...
-
It should be working. Hmm...
Log out
Clear your cookies and cache
Log back in
See if that clears things up for you.
-
Wow, yes, went into another browser, changed the formula, and it worked.
Thanks for your time!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 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!