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.5K Get Help
- 424 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 146 Just for fun
- 63 Community Job Board
- 465 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 301 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!