Forum Discussion
Brian_Paasch
Dec 28, 2021Brass Contributor
struggle with WORKDAY function
Greetings all, I’m thinking this is an easy fix, but I’m not winning. When an order hits our system it gets a system datetime stamp. To calculate (Excel, 365) our service date, I need to adjust the o...
- Dec 28, 2021
HansVogelaar
Dec 28, 2021MVP
- Brian_PaaschDec 28, 2021Brass ContributorYes, that works perfectly! Although I am struggling to wrap my brain around WHY that works, seems like an system date of Sat would be interpreted as a Fri.... Not understanding, but yes, it works!! Thank you!
- HansVogelaarDec 28, 2021MVP
The idea is to go back one day, and then find the first working day after that.
If you start with a working day, you'll end up on that day again.
But if you start on Saturday, you go to Friday, and the first working day after that is Monday.
And if you start on Sunday, you go to Saturday, and the first working day after that is Monday.
Order system date One day before Next working date Monday Sunday Monday Tuesday Monday Tuesday Wednesday Tuesday Wednesday Thursday Wednesday Thursday Friday Thursday Friday Saturday Friday Monday Sunday Saturday Monday - Brian_PaaschDec 28, 2021Brass ContributorOhhhh! Yes, makes sense! Thank you!