Roll up Fail

I have a test scenario as a parent and a sub-task as a child. So let's say, I have 11 sub tasks under the parent, if one of those 11 children has fail in its status, the parent will say fail. If all say pass, then the parent will say pass.
I couldn't get the formula to work what I wanted it to do.
Best Answer
-
Here, try this formula on the parent task.
=IF(COUNTIF(CHILDREN(), "Fail") > 0, "Fail"
Answers
-
Here, try this formula on the parent task.
=IF(COUNTIF(CHILDREN(), "Fail") > 0, "Fail"
-
Thanks it works - I added one more - =IF(COUNTIF(CHILDREN(), "Fail") > 0, "Fail", "Pass")
-
I don't see a test in there to ensure all tests were run. If one task has neither passed nor failed, your logic above will reflect all passed.
-
You need something like this to ensure all have passed.
=IF(COUNTIF(CHILDREN(), "Fail") > 0, "Fail", IF(COUNT(CHILDREN()) = COUNTIF(CHILDREN(), "Pass"), "Pass", "Incomplete"))
For all tests being run, you need values Pass, Fail, Incomplete(or value like this).
IF statements run in order from left to right until they succeed. So if the value is "Fail", the rest of the logic does not run. If there are no failures, it goes to the next IF statement.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.1K Get Help
- 450 Global Discussions
- 155 Industry Talk
- 505 Announcements
- 5.4K Ideas & Feature Requests
- 85 Brandfolder
- 156 Just for fun
- 80 Community Job Board
- 514 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 308 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!