Add Days to Date, INCLUDE weekends, but exclude holidays

fatekeeper

New Member
Joined
Nov 12, 2021
Messages
9
Office Version
  1. 365
Platform
  1. Windows
I am trying to calculate a ship date based on lead times for a factory with 7 day a week operation, but I want to exclude a list of holidays that the factory is closed.
I have the holidays listed in a table (on another tab).

This is the formula I am trying to use but get a #NUM! error.
Cell B2 represents my start date, cell H2 is the lead time in calendar days, 0 represents weekend days (I entered as 0000000 because 0 is working days and 1 is non-working days), and the HolidayTbl[Closure Dates] is the table of holiday closures (table name is HolidayTbl) pointing to the column [Closure Dates]that contains the dates.

What am I doing wrong here? Is it the "0" for zero weekend days? Is there a better function to use?

=WORKDAY.INTL(B2,H2,0,HolidayTbl[Closure Dates])

Thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi & welcome to MrExcel.
It needs to be
Excel Formula:
=WORKDAY.INTL(B2,H2,"0000000",HolidayTbl[Closure Dates])
 
Upvote 0
Solution
Hi & welcome to MrExcel.
It needs to be
Excel Formula:
=WORKDAY.INTL(B2,H2,"0000000",HolidayTbl[Closure Dates])
Thank you! I originally entered it that way and Excel changed it to a "0". I didn't think to just copy and paste the formula into the cell instead of using the formula tool, but it worked.
 
Upvote 0
I think you are correct! <facepalm> I'm slightly embarrassed that I missed that.
Thank you again. This is such a helpful forum!
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top