Need last workday with Mon's & Tue's off

Alphonse68

New Member
Joined
Sep 26, 2013
Messages
22
Hello all,
I have this formula in B1 to find the last workday of the month having Mondays and Tuesdays off:
Code:
=WORKDAY.INTL(A1,NETWORKDAYS.INTL(A1,EOMONTH(A1,0),3)-1,3)
which goes down the column to B12, with A1:A12 varying from A1=01/01/2018 to A12=12/01/2018.
It all works well except for Jan, May, and Oct, for which I erroneously get 28, 30, & 28, respectively.
These are the last work dates for each month this year, according to a Wed thru Sun work week:
31 W, 28 W, 31 S, 29 Su, 31 Th, 30 S, 29 Su, 31 F, 30 Su, 31 W, 30 F, 30 Su

Any ideas why it will not do as I'm supposing it should on those three dates?

Cheers,
Alphonse
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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