Check Parent if All Children are Checked
We use Smartsheet to house our product bill of materials across all projects. I would like to use a formula to populate in the parent row (sub-assembly) that would flip from an unchecked box to a checked box if all the children are checked. This is a parts received column so this would populate a report for our assembly team that a sub-assembly can be worked on since all the parts (children) are on site.
It would be a variation of this: =IF(COUNT(ANCESTORS()) > 0, 1, 0) but somehow I need to incorporate ALL ancestors and not just ANY ancestor is greater than 0. Any assistance is greatly appreciated.
Best Answer
-
For your parent checkbox cell, input this value (this is assuming your Primary column would always have a value)
=IF(COUNT(CHILDREN([Primary]@row)) = COUNTIFS(CHILDREN(), true), true)
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
Answers
-
For your parent checkbox cell, input this value (this is assuming your Primary column would always have a value)
=IF(COUNT(CHILDREN([Primary]@row)) = COUNTIFS(CHILDREN(), true), true)
Jason Tarpinian - Sevan Technology
Smartsheet Aligned Partner
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 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!