Forum Discussion

anonymous9376's avatar
anonymous9376
Brass Contributor
May 11, 2022
Solved

Sharepoint List column

Hi, how do I create a calculated column based on the End Date of a leave that includes working days only? What's the formula for it? (It should auto calculate a date based on weekdays and company hol...
  • RobElliott's avatar
    RobElliott
    May 12, 2022

    anonymous9376 well that's a completely different formula. Set the data type to be returned as date only:

    =EndDate+1+ROUNDDOWN(3/5,0)*2+IF(WEEKDAY(EndDate)+MOD(3,5)>=7,2,0)-ROUNDDOWN(WEEKDAY(EndDate)/7,0)+IF(AND(MOD(3,5)=0,WEEKDAY(EndDate)=1),-2,0)+IF(AND(MOD(3,5)=0,WEEKDAY(EndDate)=7),-2,0)

     

     

    Rob
    Los Gallardos
    Microsoft Power Automate Community Super User

Resources