How to use a formula for SUMIFS with more than 2 not contains criteria?
If I have 3 columns one is "department", the second is "description", and the third is "amount".
I would like to sum up the total "amount" for only department-1 in the "department" column, that doesn't contains "ABC" or "EFG" or "JKL" in the description column.
I am trying to use =SUMIFS({amount}, {department},{department-1},OR(NOT(CONTAINS("ABC", @cell),("EFG",@cell),("JKL",@cell)))}
My concern is with the NOT CONTAINS formula only. please help.
Answers
-
Each piece of the OR function will be a separate NOT/CONTAINS.
OR(NOT(CONTAINS("ABC", @cell)), NOT(CONTAINS("EFG", @cell)))
-
I used this:
=SUMIFS({amount}, {department}, {department -1}, {description}, OR(NOT(CONTAINS("ABC", @cell)), NOT(CONTAINS("EFG", @cell)), NOT(CONTAINS("JKL", @cell))))
it summed up the total amount in the column without applying the "NOT CONTAIN" condition.
-
Apologies. Swap the OR function for an AND function.
"EFG" isn't "ABC", so it will still grab "EFG". If we switch to an AND function instead, it will exclude all three.
Sorry about that. I was just looking at the syntax and not necessarily the desired outcome.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!