Calculating % Complete (Plan) Formula For M-F Only
Good Smartsheet Community:
Are there Any Modification I Can Make to this Formula so that it skips Saturday and Sunday when Calculating My % Complete (Plan)?
Current Formula:
=IF(IFERROR(IF(AND(TODAY() >= [Start Date]@row, TODAY() <= [Finish Date]@row), ROUND(NETWORKDAYS([Start Date]@row, TODAY()) / Duration@row, 2), IF(TODAY() > [Finish Date]@row, 1, 0)), 0) > 1, 1, IFERROR(IF(AND(TODAY() >= [Start Date]@row, TODAY() <= [Finish Date]@row), ROUND(NETWORKDAYS([Start Date]@row, TODAY()) / Duration@row, 2), IF(TODAY() > [Finish Date]@row, 1, 0)), 0))
Thanks
Answers
-
Check out this article: https://help.smartsheet.com/function/networkdays
-
Hi @Ray B
Hope you are fine, you can add a helper column to calculate the Weekday using this formula
=WEEKDAY(Date@row)
Saturday Weekday as you know will be 7 and Sunday will be 1 , then you cand add in your formula the following if statment
if(and( weekday <> 1 , weekday <> 7), then calculate % Complete (Plan)
bassam.khalil2009@gmail.com
☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"
-
So Add another Column called Weekday and add this Part of the Formula to the beginning of my Formula?
i.e
=if(and( weekday <> 1 , weekday <> 7), then calculate % Complete (Plan), IF(IFERROR(IF(AND(TODAY() >= [Start Date]@row, TODAY() <= [Finish Date]@row), ROUND(NETWORKDAYS([Start Date]@row, TODAY()) / Duration@row, 2), IF(TODAY() > [Finish Date]@row, 1, 0)), 0) > 1, 1, IFERROR(IF(AND(TODAY() >= [Start Date]@row, TODAY() <= [Finish Date]@row), ROUND(NETWORKDAYS([Start Date]@row, TODAY()) / Duration@row, 2), IF(TODAY() > [Finish Date]@row, 1, 0)), 0)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 379 Global Discussions
- 210 Industry Talk
- 441 Announcements
- 4.5K Ideas & Feature Requests
- 139 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 300 Events
- 33 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!