COUNTIF WITH MULTIPLE CHECKBOXES
I have a column called Systems. This allows users to thick multiple checkboxes example "Lighting","CCTV","Intruder"....
I would like to issue reports using the COUNTIF formula if the value of Systems has for example "Lighting" ticked in the checkbox. When using COUNTIF it will only count the row if "Lighting" is the only system checked. If multiple systems are checked apart from Lighting" COUNTIF will not add the row.
I think I have to use a combination of COUNTIF and CONTAINS but I am not managing to make it work.
This is the syntax that I am using:
=COUNTIF([Systems]1:[Systems]5, "Lighting")
Best Answer
-
Try this formula: =COUNTIF(Systems:Systems, HAS(@cell, "Lighting"))
The example below shows how to use it to dynamically count all your systems in a list.
I hope this helps.
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
Answers
-
Try this formula: =COUNTIF(Systems:Systems, HAS(@cell, "Lighting"))
The example below shows how to use it to dynamically count all your systems in a list.
I hope this helps.
Cheers,
Ramzi
Ramzi Khuri - Principal Consultant @ Cedar Tree Consulting (www.cedartreeconsulting.com)
Feel free to email me: ramzi@cedartreeconsulting.com
💡 If this post helped you out, please help the Community by marking it as the accepted answer/helpful.
-
Follow up question - If "TV" was an option under systems how do you not count "TV" with "CCTV"? - Never mind - I think I just had the order wrong...
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 58 Community Job Board
- 463 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!