Count Formula
Hello,
I am working on the below formula and I am not sure if it is even possible to combine the two. I am wanting (in the Health column) to count if there are more than three red health subtasks, to show as red, if there are more than 3 yellow, to show as yellow, and anything else to be green. I would also like it to show that if a task is marked as complete, it will show as blue. Is it possible to combine the count formula with what is in the status column?
=IF(AND(COUNTIFS(CHILDREN(), "Red") >= 3, "Red", IF(COUNTIFS(CHILDREN(), "Yellow") >= 3, "Yellow", "Green"), IF(AND(Status@row) = "Complete", "Blue")))
Best Answer
-
You have 4 conditions with 4 different outcomes, however the formula construct above is incorrect as you are ANDing all the conditions, so only 2 results are possible.
Try this:
=IF(COUNTIF(CHILDREN(), "Red") >= 3, "Red", IF(COUNTIF(CHILDREN(), "Yellow") >= 3, "Yellow", IF(Status@row = "Complete", "Blue", "Green") ) )
Answers
-
You have 4 conditions with 4 different outcomes, however the formula construct above is incorrect as you are ANDing all the conditions, so only 2 results are possible.
Try this:
=IF(COUNTIF(CHILDREN(), "Red") >= 3, "Red", IF(COUNTIF(CHILDREN(), "Yellow") >= 3, "Yellow", IF(Status@row = "Complete", "Blue", "Green") ) )
-
Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 412 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 138 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!