formula to derive working day date

vinod9111

Active Member
Joined
Jan 21, 2009
Messages
426
Hi All,

Need your help in creating a formula which will help me populate next working days' date.
It should not include public holidays, sunday and 2nd and 4th saturday

For instance 7th June is the date, i want to keep on generating next working day date as in this case it would be 8th June, then 11th june, 12th june and so on.

regards

Vinod
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
you can build a list of public holidays and append it to a list of 2nd and 4th saturdays

to build a list of these saturdays use the below formula in A2 and drag down

Code:
=CHOOSE(MOD(ROWS(A$2:A2)-1,2)+1,DATE(2018,QUOTIENT(ROWS(A$2:A2)-1,2)+1,1)+(7-WEEKDAY(DATE(2018,QUOTIENT(ROWS(A$2:A2)-1,2)+1,1),1))+7,A1+14)


Then:


<b>Worksheet Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: rgb(255,255,255);border-collapse: collapse; border-color: rgb(187,187,187)"><thead><tr style=" background-color: rgb(218,231,245);color: rgb(22,17,32)"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: rgb(218,231,245);color: rgb(22,17,32)">D3</th><td style="text-align:left">=WORKDAY.INTL(<font color="Blue">$C$3,ROWS(<font color="Red">D$3:D3</font>),"0000001",$A$2:$A$41</font>)</td></tr></tbody></table></td></tr></table><br />





Book1
ABCD
1Holidays
2Saturday, January 13, 2018start datenext working days
3Saturday, January 27, 2018Thursday, June 7, 2018Friday, June 8, 2018
4Saturday, February 10, 2018Monday, June 11, 2018
5Saturday, February 24, 2018Tuesday, June 12, 2018
6Saturday, March 10, 2018Wednesday, June 13, 2018
7Saturday, March 24, 2018Thursday, June 14, 2018
8Saturday, April 14, 2018Friday, June 15, 2018
9Saturday, April 28, 2018Saturday, June 16, 2018
10Saturday, May 12, 2018Monday, June 18, 2018
11Saturday, May 26, 2018Tuesday, June 19, 2018
12Saturday, June 9, 2018Wednesday, June 20, 2018
13Saturday, June 23, 2018Thursday, June 21, 2018
14Saturday, July 14, 2018Friday, June 22, 2018
15Saturday, July 28, 2018Monday, June 25, 2018
16Saturday, August 11, 2018Tuesday, June 26, 2018
17Saturday, August 25, 2018Wednesday, June 27, 2018
18Saturday, September 8, 2018Thursday, June 28, 2018
19Saturday, September 22, 2018Friday, June 29, 2018
20Saturday, October 13, 2018Saturday, June 30, 2018
21Saturday, October 27, 2018Monday, July 2, 2018
22Saturday, November 10, 2018
23Saturday, November 24, 2018
24Saturday, December 8, 2018
25Saturday, December 22, 2018
26Saturday, January 12, 2019
27Saturday, January 26, 2019
28Saturday, February 9, 2019
29Saturday, February 23, 2019
30Saturday, March 9, 2019
31Saturday, March 23, 2019
32Saturday, April 13, 2019
33Saturday, April 27, 2019
34Saturday, May 11, 2019
35Saturday, May 25, 2019
36Saturday, June 8, 2019
37Saturday, June 22, 2019
38Saturday, July 13, 2019
39Saturday, July 27, 2019
40Saturday, August 10, 2019
41Saturday, August 24, 2019
Sheet4
 
Upvote 0
Thanks VBA Geek for your prompt help, you saved my lot of time. Would you mind explaining the formula how it works.

regards,
Vinod
 
Upvote 0
Hi VBA Geek,
Is there a formula to find out date of last working day of the week, given the same conditions that it should not include public holidy, sunday and 2nd and 4th Sunday.

regards,
Vinod
 
Upvote 0
With a list of public holidays in Holidays and a date in a week of interest in cell A1, the following formula will return the last working day of the week under the required constraints:

=WORKDAY.INTL(WORKDAY.INTL(A1-1,1,"1111101")+1,-1,"00000"&--ISODD(INT((WORKDAY.INTL(A1-1,1,"1111101")-EOMONTH(WORKDAY.INTL(A1-1,1,"1111101"),-1)-1)/7))&1,Holidays)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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