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!!
✅ Did my post help answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. This will make it easier for others to find a solution or help to answer!
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"))))
✅ Did my post help answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. This will make it easier for others to find a solution or help to answer!
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"))))
✅ Did my post help answer your question or solve your problem? Please help the Community by marking it as the accepted answer/helpful. This will make it easier for others to find a solution or help to answer!
Help Article Resources
Categories
Check out the Formula Handbook template!