Updating a Parent Row Based on Children's Status
Hello!
We are trying to create a formula to accommodate the following logic: IF any [RFP Status] of children HAS In Progress or Canceled return the value "In Progress", IF ALL [RFP Status] of children HAS Complete or Canceled return the value "Complete", Otherwise, Not Started.
I generated the formula below using AI, however, it's returning a value of Complete when some tasks are still In Progress. Please help :)
=IF(OR(CONTAINS("In Progress", CHILDREN([RFP Status]@row)), CONTAINS("Canceled", CHILDREN([RFP Status]@row))), "In Progress", IF(AND(COUNTIF(CHILDREN([RFP Status]@row), "Complete") + COUNTIF(CHILDREN([RFP Status]@row), "Canceled") = COUNT(CHILDREN([RFP Status]@row)), COUNTIF(CHILDREN([RFP Status]@row), "Complete") > 0), "Complete", ""))
Answers
-
Hi @Tony Fronza,
See if this works out better for you.
=IF(CONTAINS("In Progress", CHILDREN()), "In Progress", IF(COUNTIF(CHILDREN(), "Complete") + COUNTIF(CHILDREN(), "Canceled") = COUNT(CHILDREN()), "Complete", "Not Started"))
Notes:
- This can only be put into the parent row, cannot be a column formula
- If any of the [RFP Status]@row cells are blank, this will not work as the COUNT formula only includes cells with values
Hope this helps,
Dave
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.3K Get Help
- 445 Global Discussions
- 143 Industry Talk
- 476 Announcements
- 5K Ideas & Feature Requests
- 85 Brandfolder
- 150 Just for fun
- 71 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 302 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!