How to write COUNTIFS with a NOT element
I have a working formula for looking up an external reference sheet. All the external fields are tagged with an M:
=COUNTIFS({ReportM}, "Jul 24 - Oct 24", {ProjectM}, Metric@row)
but I now need to exclude a third criterion {ThemeM}, "History"
I tried adding it as
=COUNTIFS({ReportM}, "Jul 24 - Oct 24", {ProjectM}, Metric@row, NOT( {ThemeM}, "History"))
but it returned an INCORRECT ARGUMENT or UNPARSEABLE error.
Grateful for some guidance on the correct syntax to achieve a count that excludes the "History" Theme from the count.
Answers
-
Try something more like this:
=COUNTIFS({ReportM}, "Jul 24 - Oct 24", {ProjectM}, Metric@row, {ThemeM}, @cell <> "History")
-
Brilliant, thanks, Paul. I just had to remember to reinsert my actual field names!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!