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)
☑️ 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
Check out the Formula Handbook template!