realPrincessApril
New Member
- Joined
- Jul 5, 2021
- Messages
- 20
- Office Version
- 365
- Platform
- Windows
Hi all,
I thought I understood the Workday function, but apparently not. If my ref date is in B34 and holidays in lookup table, I thought this would return the first workday of the month:
For ref date 1/1/2022 it returns Monday 1/3/2022 as first workday (great).
But if I change ref date to 2/1/2022, the formula returns Wednesday 2/2/2022 rather than Tuesday 2/1/2022 (whoops). I can get the formula to return 2/1/22 for ref date 2/1/22 if I change the days offset in the formula from 1 to 0, but then that would return incorrectly for January. (2/1/22 is not a holiday in my lookup table).
So I'm wondering if there is an issue with my reference to the weekends. I had thought 1 was the default code for Sat/Sun, which I am using as the weekends. Could someone kindly help me understand what I'm missing? Thank you so much!
I thought I understood the Workday function, but apparently not. If my ref date is in B34 and holidays in lookup table, I thought this would return the first workday of the month:
Excel Formula:
=WORKDAY.INTL($B$34,1,1,'Unit Lookups'!$A$21:$A$33)
For ref date 1/1/2022 it returns Monday 1/3/2022 as first workday (great).
But if I change ref date to 2/1/2022, the formula returns Wednesday 2/2/2022 rather than Tuesday 2/1/2022 (whoops). I can get the formula to return 2/1/22 for ref date 2/1/22 if I change the days offset in the formula from 1 to 0, but then that would return incorrectly for January. (2/1/22 is not a holiday in my lookup table).
So I'm wondering if there is an issue with my reference to the weekends. I had thought 1 was the default code for Sat/Sun, which I am using as the weekends. Could someone kindly help me understand what I'm missing? Thank you so much!