COUNTM and/or COUNTIFS formula and checkboxes
I have a project plan that tracks root causes of variances for milestone tasks. The variance root cause is a multi-select drop down list. Milestone tasks are identified using a checkbox.
I am trying to count the total number of root causes for all milestone tasks. I do not want to include root causes that may been identified for non-milestone tasks. In the example below, the answer would be 4.
I created references for the Root Cause and Milestone columns so I can collect the data on another sheet for reporting.
I tried using the following COUNTM formula but not getting the correct count.
=COUNTM({Root Cause}, {Milestone}, 1)
I also tried using COUNTIFS but it only counts 1 root cause for each milestone.
=COUNTIFS({Root Cause}, <>"", {Milestone}, 1)
Thank you in advance!
Best Answers
-
Try this:
=COUNTM(COLLECT({Root Cause}, {Milestone}, @cell = 1))
-
That works!
Thank you very much Paul!!!
Answers
-
Try this:
=COUNTM(COLLECT({Root Cause}, {Milestone}, @cell = 1))
-
That works!
Thank you very much Paul!!!
-
Happy to help. 👍️
-
I have a follow up question:
I would like to use the same logic, but specify a particular root cause (e.g., Scope Change).
I tried this variation, but the count is always 1.
=COUNTM(COLLECT({PP Root Cause}, "Scope Change", {PP Milestone}, @cell = 1))
-
@SteveE Your syntax is off. You need to repeat the root cause range one more time before entering the criteria.
-
Thanks Paul. In this instance root cause is a reference to an entire column range in a different sheet. Won't repeating the reference return errors?
=COUNTM(COLLECT({PP Root Cause}:{PP Root Cause}, "Scope Change", {PP Milestone}, @cell = 1))
-
You would need to use the proper syntax.
criteria to collect, 1st criteria range, 1st criteria, 2nd criteria range, 2nd criteria
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.1K Get Help
- 352 Global Discussions
- 198 Industry Talk
- 427 Announcements
- 4.4K Ideas & Feature Requests
- 135 Brandfolder
- 127 Just for fun
- 128 Community Job Board
- 444 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 283 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!