Making parent complete if children complete BY REFERENCING OTHER COLUMNS
Hi. I know similar questions have been asked, but none seem to reference other columns, which is the key problem for me.
Problem: In my sheet, the Health column symbol changes color based on End Date column UNLESS the Progress column is marked "Complete", in which case health turns green. However, as you can see in the screenshot below, this leaves the parent row red unless the parent row is also independently marked complete.
Desired Outcome: I would like the parent row to *automatically* turn green if all of the children are marked complete. I've tried using the CHILDREN function for this but can't get it to work referencing child cells in other columns. I can only get it to work referencing child cells in the same column.
Here is the formula I currently have for the health column:
=IF(ISBLANK([End Date]@row), " ", (IF(AND([End Date]@row <= TODAY(), NOT(Progress@row = "Complete")), "Red", (IF(AND([End Date]@row <= TODAY(7), NOT(Progress@row = "Complete")), "Yellow", (IF(AND([Start Date]@row > TODAY(), NOT(Progress@row = "Complete")), "Gray", "Green")))))))
Thanks in advance for any help!
Best Answer
-
Hi Brandon,
You can reference the children in a different cell by doing CHILDREN(Progress@row). If you are wanting to determine value of Health based on the Progress of the children all being Complete, I've used a formula like this:
IF((COUNTIF(CHILDREN(Progress@row), ="Complete")) = COUNT(CHILDREN(Progress@row)), "Green", "Red")
It checks how many children are Complete. If that matches the number of children, that means all children are complete, then it should be green too -- if not, then it can go through the rest of your formula to determine what it should be.
Hope this helps!
Answers
-
Hi Brandon,
You can reference the children in a different cell by doing CHILDREN(Progress@row). If you are wanting to determine value of Health based on the Progress of the children all being Complete, I've used a formula like this:
IF((COUNTIF(CHILDREN(Progress@row), ="Complete")) = COUNT(CHILDREN(Progress@row)), "Green", "Red")
It checks how many children are Complete. If that matches the number of children, that means all children are complete, then it should be green too -- if not, then it can go through the rest of your formula to determine what it should be.
Hope this helps!
-
That helped! Thank you, Victoria.
Now on to make next ambitions for perfecting this formula.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.6K Get Help
- 433 Global Discussions
- 136 Industry Talk
- 465 Announcements
- 4.9K Ideas & Feature Requests
- 143 Brandfolder
- 147 Just for fun
- 63 Community Job Board
- 466 Show & Tell
- 32 Member Spotlight
- 2 SmartStories
- 298 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!