Nested IF with Children
Greetings,
I'm attempting to configure an Epic (parent) field to automatically change based on the statuses of the child fields. For example, the criteria I'm attempting to meet is:
- If all child status fields are in "To Do" then parent field status is "To Do" else "In Progress"
- If all child status fields are in "Done" Then parent field status is "Done" else "In Progress"
I've written two separate formulas that work, but I have so far failed to combine them. So far what I have for item number 1 is:
=IF(AND(COUNTIF(CHILDREN(), "To Do") > 0, COUNTIF(CHILDREN(), "To Do") = COUNT(CHILDREN())), "To Do", "In Progress")
And for item number 2 I have:
=IF(AND(COUNTIF(CHILDREN(), "Done") > 0, COUNTIF(CHILDREN(), "Done") = COUNT(CHILDREN())), "Done", "In Progress")
I've attempted to combine them into the following with no success:
=IF(AND(COUNTIF(CHILDREN(), "To Do") > 0, COUNTIF(CHILDREN(), "To Do") = COUNT(CHILDREN())), "To Do", "In Progress", IF(AND(COUNTIF(CHILDREN(), "Done") > 0, COUNTIF(CHILDREN(), "Done") = COUNT(CHILDREN())), "Done", "In Progress")
Any help is appreciated, thanks!
Best Answer
-
Try something like this...
=IF(COUNTIFS(CHILDREN(), "To Do") = COUNT(CHILDREN()), "To Do", IF(COUNTIFS(CHILDREN(), "Done") = COUNT(CHILDREN()), "Done", "In Progress"))
Answers
-
Try something like this...
=IF(COUNTIFS(CHILDREN(), "To Do") = COUNT(CHILDREN()), "To Do", IF(COUNTIFS(CHILDREN(), "Done") = COUNT(CHILDREN()), "Done", "In Progress"))
-
That worked, thanks Paul!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!