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

Options
Anthony Barthelemy
Anthony Barthelemy ✭✭✭✭✭✭
edited 04/23/21 in Formulas and Functions

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

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    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)

    PMP Certified

    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"

  • Anthony Barthelemy
    Anthony Barthelemy ✭✭✭✭✭✭
    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!