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
- Customer Resources
- 65.1K Get Help
- 444 Global Discussions
- 141 Industry Talk
- 472 Announcements
- 5K Ideas & Feature Requests
- 83 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 489 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 301 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!