Parent/Child formula depending on status
Hi,
I am setting up a status column on a project plan.
The statuses we are using are:
Not Started, In Progress, Overdue & Complete.
I want to use a formula on the parent rows to look at the statuses of the children rows and return a status based on the following:
If any of the children are overdue then parent status is Overdue.
If all are Complete then parent status is Complete
If all are Not Started then parent status is Not started
If not any of the above then parent status is In Progress
Any suggestions gratefully received!
Kind regards,
Greg
Best Answer
-
Try something like this:
=IF(COUNTIFS(CHILDREN(), @cell = "Overdue")> 0, "Overdue", IF(COUNTIFS(CHILDREN(), @cell = "Complete") = COUNT(CHILDREN()), "Complete", IF(COUNTIFS(CHILDREN(), @cell = "Not Started") = COUNT(CHILDREN()), "Not Started", "In Progress")))
Answers
-
Try something like this:
=IF(COUNTIFS(CHILDREN(), @cell = "Overdue")> 0, "Overdue", IF(COUNTIFS(CHILDREN(), @cell = "Complete") = COUNT(CHILDREN()), "Complete", IF(COUNTIFS(CHILDREN(), @cell = "Not Started") = COUNT(CHILDREN()), "Not Started", "In Progress")))
-
Perfect thanks
-
Help Article Resources
Categories
Check out the Formula Handbook template!