Formula to Check a box at different indention levels
Hey there,
Trying to figure out a formula to automatically check the boxes based on how many times a task has been indented, like this:
I know I can set the Activity column to: =IF(COUNT(CHILDREN([Task Name]@row)) = 0, 1), but I don't know how to do the others. Any help would be appreciated!
Best Answer
-
Instead of counting children, count ancestors. The leftmost indentation will result in a zero from the COUNT.
=IF(COUNT(ANCESTORS([Task Name]@row)) = 0, 1)
would be for the Department column.
1 would be for the Category column, 2 for the Initiative column, so on and so forth.
Answers
-
Instead of counting children, count ancestors. The leftmost indentation will result in a zero from the COUNT.
=IF(COUNT(ANCESTORS([Task Name]@row)) = 0, 1)
would be for the Department column.
1 would be for the Category column, 2 for the Initiative column, so on and so forth.
-
Super simple. Love it. Thanks Paul!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 67.7K Get Help
- 472 Global Discussions
- 200 Use Cases
- 514 Announcements
- 5.5K Ideas & Feature Requests
- 87 Brandfolder
- 157 Just for fun
- 82 Community Job Board
- 520 Show & Tell
- 36 Member Spotlight
- 3 SmartStories
- 307 Events
- 35 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!