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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!