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
- 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
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!