I have a to do list with parent tasks and children tasks. I have a status column with a dropdown menu with the options “Not started,” “In process,” and “Completed.” I want to have a formula that auto-populates the parent task with the status based on the children tasks. Here is the logic that I want the formula to use:
- If all children tasks are not started, parent task is not started
- If all children tasks are completed, parent task is completed
- If some children tasks are not started, some are completed and some are in process, parent task is in process
- If some children tasks are not started and some are completed, parent task is in process
- If some children tasks are in process and some are not started, parent task is in process
- If some children tasks are in process and some are completed, parent task is in process
I am currently using the following formula and it is working for every task except when I have a mix of children tasks that are completed and not started, it is listing the parent task as not started.
=IF(COUNTIF(CHILDREN(), "Completed") = COUNT(CHILDREN()), "Completed", IF(COUNTIF(CHILDREN(), "Not Started") = COUNT(CHILDREN()), "Not Started", IF(COUNTIF(CHILDREN(), "In Process") > 0, "In Process", "Not Started")))