calculate end date excl holidays

dave bates

Board Regular
Joined
Jul 7, 2008
Messages
106
Hi i am using excel 2003 and want to calculate the end date of a process based on the start date + duration in days but adjusted for holiday periods eg start date in B3, duration in B4, holidays in A20:A30.

the duration is in days and does not need adjusting for weekends

:confused:

thanks for any help
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Assuming holidays are a full list of dates, not just start and end date of a holiday peroid.

=sum(B3,B4,count(A20:A30))-1

This includes the start date in the duration, remove the -1 from the end if it should be excluded.
 
Upvote 0
thanks, I realised that I did not explain it very well.

The duration needs to take account of any holidays that may fall in the period eg if start date was the 26 April, the duration 14 days therefore end = 10 May however 28 April is a holiday therefore end date = 11 May

sorry for the confusion
 
Upvote 0
Try

=SMALL(IF(COUNTIF(A20:A30,B3+ROW(INDIRECT("1:"&B4*10)))=0,ROW(INDIRECT("1:"&B4*10))),C3)+B3

confirmed with CTRL+SHIFT+ENTER

or if you have Excel 2010 you can use WORKDAY.INTL function for the same result using

=WORKDAY.INTL(B3,B4,"0000000",A20:A30)
 
Upvote 0
thanks for your reply, I am not sure what the C3 is referencing to.

Also to make matters worst for me! I would like to reformat the data such that the start date is in B3 the duration in C3 holidays in A20:A30 [singular dates in each cell]
 
Upvote 0
Sorry the C3 should have been B4 based on your original setup....but if you have start date in B3, duration in C3 and holidays in A20:A30 then try

=SMALL(IF(COUNTIF(A$20:A$30,B3+ROW(INDIRECT("1:"&C3*10)))=0,ROW(INDIRECT("1:"&C3*10))),C3)+B3

confirmed with CTRL+SHIFT+ENTER
 
Upvote 0

Forum statistics

Threads
1,224,575
Messages
6,179,637
Members
452,934
Latest member
Jdsonne31

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