COUNTIF formula with 3 criterions
Hey everyone,
I am trying to create a formula that counts the cells that are true with two criteria and are flagged red.
=SUM(COUNTIFS({All Nexii HSE Incident Reporting Range 2}, "Hazard ID - Behavior", {All Nexii HSE Incident Reporting Range 1}, "Squamish", {All Nexii HSE Incident Reporting Range 3}, "Flag"))
The formula works great without the third criteria. Any suggestions on how to fix the third criterion? Recommendations are highly appreciated.
Answers
-
@LJK I am fairly certain that if you remove SUM from the front of your formula that it will work properly. If you are just trying to count the cells that match your criteria you will only need to use the COUNTIFS function
-
Thank you for reaching out. Unfortunately unparseable if I do that.
-
Also, the formula works for two criteria, it just doesn't use the third criterion that I have added.
-
Are you asking for it to look for "raised flags"? If so then you simply need to replace the word "Flag" with "1" so your formula should read as ...
=SUM(COUNTIFS({All Nexii HSE Incident Reporting Range 2}, "Hazard ID - Behavior", {All Nexii HSE Incident Reporting Range 1}, "Squamish", {All Nexii HSE Incident Reporting Range 3}, 1))
A "1" would indicate that a flag is raised in that particular column. Let me know if this works for you.
Smartsheet Overachievers Alumni
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!