Status Formula
I need some help fine-tuning this formula. I need it to follow the following rules. Open to better options!!!
It would need to be on a parent row. It will summarize the children's status.
Rules:
If all are 'Not Started' then the summary should show 'Not Started'.
If all are 'Completed' then the summary should show 'Completed'.
If all are 'On Hold' then the summary should show 'On Hold'.
If all are 'Cancelled' then the summary should show 'Cancelled'.
If even 1 is 'In Progress' then the summary should show 'In Progress'
**The formula below is working except 'Not Started' is trumping the 'In Progress'. **
=IF(COUNT(DESCENDANTS()) = COUNTIFS((DESCENDANTS()), OR(@cell = "Not Started", @cell = " ")), "Not Started", IF(COUNT(CHILDREN()) = COUNTIF(CHILDREN(), "Complete"), "Complete", IF(COUNT(CHILDREN()) = COUNTIF(CHILDREN(), "Canceled"), "Canceled", IF(COUNT(CHILDREN()) = COUNTIF(CHILDREN(), "On Hold"), "On Hold", IF(OR(CONTAINS("In Progress", CHILDREN()), AND(COUNTIF(CHILDREN(), "Complete") > 0, COUNTIF(CHILDREN(), "On Hold") > 0)), "In Progress", IF(OR(CONTAINS("Not Started", CHILDREN()), AND(COUNTIF(CHILDREN(), "") > 0, COUNTIF(CHILDREN(), "On Hold") > 0)), "Not Started", IF(OR(CONTAINS(ISBLANK(), CHILDREN()), AND(COUNTIF(CHILDREN(), "Not Started") > 0, COUNTIF(CHILDREN(), "On Hold") > 0)), "Not Started")))))))
Best Answer
-
Give this a try:
=IF(COUNTIFS(CHILDREN(), OR(@cell = "Not Started", @cell = "")) = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Not Started", IF(COUNTIFS(CHILDREN(), @cell = "Complete") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Complete", IF(COUNTIFS(CHILDREN(), @cell = "On Hold") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "On Hold", IF(COUNTIFS(CHILDREN(), @cell = "Cancelled") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Cancelled", "In Progress"))))
Answers
-
Give this a try:
=IF(COUNTIFS(CHILDREN(), OR(@cell = "Not Started", @cell = "")) = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Not Started", IF(COUNTIFS(CHILDREN(), @cell = "Complete") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Complete", IF(COUNTIFS(CHILDREN(), @cell = "On Hold") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "On Hold", IF(COUNTIFS(CHILDREN(), @cell = "Cancelled") = COUNTIFS(CHILDREN(), OR(@cell = "", @cell <> "")), "Cancelled", "In Progress"))))
-
Thank you Paul!!!!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!