Trying to determine if all children have N/A Status
I'm working on a formula for summary rows to look at the % Complete of the row as well as the statuses of the child rows. I have the % Complete portion handled:
=IF([% Complete]@row = 1, "Complete", IF(AND([% Complete]@row > 0, [% Complete]@row < 1), "In Progress", IF([% Complete]@row = 0, "Not Started")))
I want to add in another nested IF to check the statuses of the child rows, & if they're all marked N/A, then display N/A. Something like this:
=IF((All children contain N/A), "N/A", IF([% Complete]@row = 1, "Complete", IF(AND([% Complete]@row > 0, [% Complete]@row < 1), "In Progress", IF([% Complete]@row = 0, "Not Started"))))
I just need help writing out a logical statement that will check the status of the child rows. Let me know if I need to clarify anything & thanks for your help!!
Best Answer
-
I got it! It's long but it works:
=IF(AND(CONTAINS("N/A", CHILDREN(STATUS@row)), CONTAINS("Not Started", CHILDREN(STATUS@row)) = false, CONTAINS("In Progress", CHILDREN(STATUS@row)) = false, CONTAINS("Complete", CHILDREN(STATUS@row)) = false), "N/A", IF([% Complete]@row = 1, "Complete", IF(AND([% Complete]@row > 0, [% Complete]@row < 1), "In Progress", IF([% Complete]@row = 0, "Not Started"))))
Answers
-
I got it! It's long but it works:
=IF(AND(CONTAINS("N/A", CHILDREN(STATUS@row)), CONTAINS("Not Started", CHILDREN(STATUS@row)) = false, CONTAINS("In Progress", CHILDREN(STATUS@row)) = false, CONTAINS("Complete", CHILDREN(STATUS@row)) = false), "N/A", IF([% Complete]@row = 1, "Complete", IF(AND([% Complete]@row > 0, [% Complete]@row < 1), "In Progress", IF([% Complete]@row = 0, "Not Started"))))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.7K Get Help
- 406 Global Discussions
- 218 Industry Talk
- 456 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 136 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 297 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!