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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!