Parent Child formula for Checkboxes
Hello,
I am working on a checkbox column formula for a sheet that will function as a roll up but will not automatically check the lowest children.
Currently I have this:
=IF(COUNTIFS(CHILDREN(), 1) = COUNT(CHILDREN(Tasks@row)), 1)
That formula works, but you have to manually add it to each parent row. I would rather have something that I can set as a column formula instead if it's possible. Anyone able to help expand the above to what I am looking for?
Thanks!
Best Answer
-
Hi @Mross0878
If you set your column to be a column formula, then you won't be able to manually add data to any of the cells (as they will be locked to the formula.
You could put that same formula in a new, separate column, perhaps with an addition to make it blank if it's a child cell:
=IF(COUNT(ANCESTORS(Tasks@row)) > 0, "-", IF(COUNTIFS(CHILDREN([Checkbox Column]@row), 1) = COUNT(CHILDREN(Tasks@row)), 1))
Note that you'd need to reference your current column in your Count-Children part of the function. Does that make sense?
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Answers
-
Hi @Mross0878
If you set your column to be a column formula, then you won't be able to manually add data to any of the cells (as they will be locked to the formula.
You could put that same formula in a new, separate column, perhaps with an addition to make it blank if it's a child cell:
=IF(COUNT(ANCESTORS(Tasks@row)) > 0, "-", IF(COUNTIFS(CHILDREN([Checkbox Column]@row), 1) = COUNT(CHILDREN(Tasks@row)), 1))
Note that you'd need to reference your current column in your Count-Children part of the function. Does that make sense?
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!