Forum Discussion

Jennifer_Eggleston's avatar
Jennifer_Eggleston
Copper Contributor
May 26, 2022
Solved

Combine Workday function with calendar day formula

I have a formula that returns a specific calendar day but, if that day falls on a weekend or holiday, I want it to return the following working day. I've tried this formula:   =WORKDAY($A$4+RIGHT(E...
  • HansVogelaar's avatar
    HansVogelaar
    May 26, 2022

    Jennifer_Eggleston 

    If A4 equals 6/1/2022 and E45 ends in 16:

     

    $A$4+RIGHT(E45,2)-1 = 6/1/2022 + (16-1) days = 6/1/2022 + 15 days  = 6/16/2022.

    6/16/2022 is a Thursday. The next workday is 6/17/2022.

     

    Perhaps you want

     

    =WORKDAY($A$4+RIGHT(E45,2)-2,1,Holidays[Dates])

     

    This will return 6/16/2022.

Resources