Working days excluding holidays

wildturkey

Board Regular
Joined
Feb 21, 2006
Messages
189
Office Version
  1. 365
Platform
  1. Windows
Afternoon All

Just looking to drag down a date but with Saturdays, Sundays and holidays excluded...

I can get this to work to give me my list excluding Saturdays and SUndays, but the holidays is beyond me, any help appreciated..

Thanks
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You can not delete the thread instead you can modify your question by replying to your own thread
 
Upvote 0
Cannot find my addins or XL2BB but will try and elaborate..

In Cell A1 I have a date, in A2 I'd like a formula that can be dragged down that adds one day to the day above but excludes weekends or holidays in a list.

I have the following which works until I get a month where there are two consequtive holidays...

=IF(ISERROR(MATCH(WORKDAY(EOMONTH(A1,-1),1),Sheet2!$B$1:$B$12,0)),WORKDAY(EOMONTH(A1,-1), 1),WORKDAY(EOMONTH(A1,-1), 1)+1)

Fingers crossed :)
 
Upvote 0
Is B1:B12 a list of the Holidays?
 
Upvote 0
Upvote 0
Solution
So much simpler than mine and works way much better - Thank you!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
If you only wanted the working days for the month you could also use
+Fluff 1.xlsm
A
117/12/2021
201/12/2021
302/12/2021
403/12/2021
506/12/2021
606/12/2021
706/12/2021
807/12/2021
908/12/2021
1009/12/2021
1110/12/2021
1213/12/2021
1313/12/2021
1413/12/2021
1514/12/2021
1615/12/2021
1716/12/2021
1817/12/2021
1920/12/2021
2020/12/2021
2120/12/2021
2221/12/2021
2322/12/2021
24
Data
Cell Formulas
RangeFormula
A2:A23A2=LET(Hols,Sheet2!$B$2:$B$12,Start,EOMONTH(A1,-1),WORKDAY(SEQUENCE(NETWORKDAYS(Start,EOMONTH(A1,0),Hols),,Start),1,Hols))
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,592
Messages
6,120,433
Members
448,961
Latest member
nzskater

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