Forum Discussion
Tony2021
Feb 27, 2022Steel Contributor
Calculated Dates (taking into Account Holidays)
Hello Experts, I am building a table: tblDatesDeliver. There are 5 fields in this table. 2 are manually entered 3 should be calculated based on the number of business days count prior I h...
- Mar 11, 2022
im too lazy to follow the thread.
but i get the idea based on the worksheet to attached.
see your demo.
George_Hepworth
Silver Contributor
Tony2021
Mar 11, 2022Steel Contributor
Hi George,
What could I be doing wrong if get a different answer on my end? I enter the same date 11/3/22 but it returns 10/27/22 and not 10/26/22 like you show above in your pic? There is a holiday in the holidaytable of Mon 10/31/22.
- George_HepworthMar 11, 2022Silver ContributorOh, That's over Thanksgiving, right? I think in my table I have both Thursday (day) and Friday (day after) as holidays. Do you have them both?
- Tony2021Mar 11, 2022Steel Contributor
George, I dont see any other holiday between 11/3/22 and 10/26/22 other than Halloween 10/31/22
- George_HepworthMar 11, 2022Silver Contributor
Oops, I was thinking of Thanksgiving, not Halloween.
The only other thing I can think of is that I used dates two years in the past.
Perhaps that's causing the discrepancy?
Business Days Before: BusinessDayBeforeDate(DateAdd("yyyy",-2,[Holiday]),5) - Tony2021Mar 11, 2022Steel ContributorWhat do you mean? I am not sure what is 2 years in the past?
- George_HepworthMar 11, 2022Silver Contributor
BusinessDayBeforeDate(DateAdd("yyyy",-2,[Holiday]),5)