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
- Smartsheet Customer Resources
- 62.4K Get Help
- 364 Global Discussions
- 202 Industry Talk
- 430 Announcements
- 4.4K Ideas & Feature Requests
- 137 Brandfolder
- 129 Just for fun
- 128 Community Job Board
- 446 Show & Tell
- 28 Member Spotlight
- 1 SmartStories
- 284 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!