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
- 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
- 495 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!