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
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!