Check Parent box if Child box is checked
I have a column of checkboxes and would like to check the Parent box if any of the children boxes are checked. What's the formula to do that?
Best Answer
-
Try this in your checkbox column on the parent row:
=IF(COUNTIF(CHILDREN(Checkbox@row), 1) >0, 1, 0)
(where "Checkbox" is the column name for the checkbox column)
English: If the count of child rows where the checkbox is checked is greater than 0, set this checkbox to 1 (checked,) otherwise set it to 0 (unchecked.)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
Answers
-
Try this in your checkbox column on the parent row:
=IF(COUNTIF(CHILDREN(Checkbox@row), 1) >0, 1, 0)
(where "Checkbox" is the column name for the checkbox column)
English: If the count of child rows where the checkbox is checked is greater than 0, set this checkbox to 1 (checked,) otherwise set it to 0 (unchecked.)
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!