# Calculating % Complete (Plan) Formula For M-F Only

Options
✭✭✭✭✭✭
edited 04/23/21

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

• Options
• ✭✭✭✭✭✭
Options

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

• ✭✭✭✭✭✭
Options

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

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!