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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 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!