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!
-
Happy to help. 👍️
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63.5K Get Help
- 402 Global Discussions
- 213 Industry Talk
- 450 Announcements
- 4.7K Ideas & Feature Requests
- 141 Brandfolder
- 135 Just for fun
- 56 Community Job Board
- 454 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 296 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!