How to use a formula for SUMIFS with more than 2 not contains criteria?
![phaze](https://us.v-cdn.net/6031209/uploads/defaultavatar/nWRMFRX6I99I6.jpg)
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
- Smartsheet Customer Resources
- 62.1K Get Help
- 348 Global Discussions
- 199 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 133 Brandfolder
- 127 Just for fun
- 127 Community Job Board
- 455 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 282 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!