Can I create a SUMIF "does not contain" with multiple values?
Trying to add up the number of people from all cities but, CityA, CityD, CityF, etc in the same argument. Is there a simple SUMIF formula i could use? Currently I have been using:
=SUMIF([City]1:[City]51, <>"NYC", [# People]1:[# People]51)
but i want Smartsheet to exclude multiple cities.
I've tried a few options but felt the most hopeful with the following.. but they didnt work:
=SUMIF([City]1:[City]51, <>"NYC", <>"LAX", [# People]1:[# People]51)
=SUMIF([City]1:[City]51, <>"NYC", OR [City]1:[City]51, <>"LAX", [# People]1:[# People]51)
=SUMIF([City]1:[City]51, <>"NYC", AND [City]1:[City]51, <>"LAX", [# People]1:[# People]51)
this is likely super simple - any ideas?
Answers
-
Try something like this...
=SUMIFS([# People]1:[# People]51, City1:City51, AND(@cell <> "LAX", @cell <> "NYC"))
-
Thanks Andrew. it got me closer! :)
-
Happy to help! 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.3K Get Help
- 364 Global Discussions
- 199 Industry Talk
- 428 Announcements
- 4.4K Ideas & Feature Requests
- 136 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 445 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!