I am trying to count how many milestones are Green, Red, and Yellow
Hopefully, someone can help me out. I and trying to create a summary of how many milestones are yellow, red, and green
Milestones Yellow -?
Milestones Green -?
Milestones Red -?
I have the formula to count milestones - =COUNTIF({Sheet Name Range 3}, "1"), and I get an accurate count of all milestones.
I also have the formula to count the text of the color =COUNTIF({Sheet Name Range 1}, "Red"), and I get an accurate count. However, I am unable to put the two together so I can count how many milestones are red, green, and yellow.
Your help is greatly appreciated.
Answers
-
Hi @Mark Sleighter,
May not be the cleanest approach but you can just add all your COUNTIF formulas together.
=COUNTIF({Sheet Name Range 3}, "Red") + (COUNTIF({Sheet Name Range 3}, "Green") + (COUNTIF({Sheet Name Range 3}, "Yellow")))
-
Hi @Summer,
Thank you for taking the time to try and help, but that is not exactly what I am looking for, as I may not have explained the use case properly.
In the screenshot below, I have the milestone column and the health column. I want to count how many milestones (stars) are green, how many milestones are yellow, and how many milestones are red. Then once I have this on a summary sheet, I can add a graph to my dashboard.
Hopefully, this will provide a better understanding of my question and the solution I am looking for.
Thank you for getting back to me so quickly. I have the counts
-
Hi @Mark Sleighter,
I assume you have 3 sheet summary fields to capture the numbers, one for each of Red, Yellow, and Green milestones.
You can use the COUNTIFS formula to count the number of rows that meet multiple criteria - in this case, is a milestone and is red; is a milestone and is yellow; is a milestone and is green.
Here is the formula for red:
=COUNTIFS(milestone:milestone, 1, Health:Health, "Red")
You can get the official syntax and usage notes here: COUNTIFS Function | Smartsheet Learning Center
I hope this helps!
Regards,
-
@Sing C , Thank you for responding. However, that did not work either.
-
@Mark Sleighter Do you get an error message in the formula? Here is a screenshot of the test sheet I created, with the formula in the sheet summary field for Red milestones, and the formula correctly evaluates to 2.
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!