Duration to a specific task from project start / counting the number of project days
Hello,
I'm wondering if there is a function in Smartsheet by which I can create a column that displays the total number of project days from the beginning of the project ("Project Day 1") up to the beginning of each task. For example, the first task would start on "project day 1," the last task of the project would start on "project day 265" (or however long the total duration of the entire planned project is). Note: this is not the duration of an individual task, but the "project day," as in the project day number in the total life cycle of the project.
Related: I'd like to display these "Project Days" while also taking into account "weekends" and "holidays" which are NOT considered project days. We work Mon-Sat, so it would be 6 project days per week (not counting holidays).
Thanks!
JP
Best Answer
-
You would need to adjust your settings to reflect Mon-Sat and update the holiday dates (either in your settings, somewhere on the sheet, or in a different sheet). Then you can use a NETWORKDAYS function (link included) like so:
=NETWORKDAYS(DATE(2020, 08, 18), [Start Date]@row)
If you have a cell containing the date:
=NETWORKDAYS([Start Date]$1, [Start Date]@row)
If your holidays are in a sheet instead of in your settings:
=NETWORKDAYS([Start Date]$1, [Start Date]@row, [Holiday Column]:[Holiday Column])
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Answers
-
You would need to adjust your settings to reflect Mon-Sat and update the holiday dates (either in your settings, somewhere on the sheet, or in a different sheet). Then you can use a NETWORKDAYS function (link included) like so:
=NETWORKDAYS(DATE(2020, 08, 18), [Start Date]@row)
If you have a cell containing the date:
=NETWORKDAYS([Start Date]$1, [Start Date]@row)
If your holidays are in a sheet instead of in your settings:
=NETWORKDAYS([Start Date]$1, [Start Date]@row, [Holiday Column]:[Holiday Column])
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
-
Thank you, it worked! Just note: column type must be "text/number" and not "date." Best, JP
-
Happy to help. 👍️
And yes. Since the NETWORKDAYS function generates a numeric value it will need to go into a text/number type column.
Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 377 Global Discussions
- 207 Industry Talk
- 440 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 289 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!