How to manually calculate duration of task hierarchy
How can I manually calculate the duration of a parent task in a task hierarchy, i.e. the duration (in working days or calendar days) from the earliest start date of any child task of the hierarchy to the latest finish date of any child task?
Background: I have a Gantt chart in a sheet where I had to disable dependencies because I am linking most of the dates from other sheets. With dependencies disabled, durations don't get calculated automatically.
If there are any other suggestions to work around the limitation of not being able to use dependencies and links in the same sheet, I'm open to these as well.
Thanks.
Best Answer
-
For the start you would use
=MIN(CHILDREN())
and for the end you would use
=MAX(CHILDREN())
Answers
-
If you use formulas to roll the child tasks up to the parent rows, you could use something along the lines of
=[End Date]@row - [Start Date]@row
or
=NETWORKDAYS([Start Date]@row, [End Date]@row)
-
Thanks. This allows me to calculate the duration once I have the right start and end dates in the parent row.
So how do I do the "rolling up" part that you mention, specifically determine the earliest start date of any child task under the parent, and the latest end date of any child task?
Thanks for any help you can provide.
-
For the start you would use
=MIN(CHILDREN())
and for the end you would use
=MAX(CHILDREN())
-
Great, thank you! Just getting started with formulas (and Smartsheet in general).
-
Happy to help. 👍️
I have found the Community to be a great source of information.
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!