Formula to get the 4th workday before end of month

vinzent

New Member
Joined
Feb 7, 2012
Messages
35
Office Version
  1. 365
Platform
  1. Windows
Hello,
I want to get one formula to get the 4th workday before end of month (not weekends)
I was trying with this formula, but is not working correctly (is showing 4/26 instead 4/25)
=DATE(YEAR(TODAY()), MONTH(TODAY()) + 1, 0) - 4

Example:
Month4th workday before end of month
Apr25-Apr
May28-May
Jun25-Jun
Jul26-Jul
Aug27-Aug
Sep24-Sep
Oct28-Oct
Nov26-Nov
Dec26-Dec

Thank You for your help.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
See if the following formula works for you:
Excel Formula:
=WORKDAY(EOMONTH(TODAY(),0)+1,-4)
Hello
Thank You for your help, but this works for this month, how to get the same information for next months?
 
Upvote 0
The following formula will spill the required dates for a year ahead:
Excel Formula:
=WORKDAY(EOMONTH(TODAY(),{0;1;2;3;4;5;6;7;8;9;10;11})+1,-4)
 
Upvote 0
Try for year 2024
Excel Formula:
=WORKDAY(EOMONTH(DATE(2024,{1,2,3,4,5,6,7,8,9,10,11,12},1),0),-4)
For 6th month
Excel Formula:
=WORKDAY(EOMONTH(DATE(2024,6,1),0),-4)
 
Upvote 0
Then you will need to create a list of holiday dates in a range so it can be added to the proposed formulas that have been posted.
Only on my phone at the moment and so will update one of the formulas when I get in later if no-one else has done but we need to know the range with the holidays.
 
Upvote 0
I need to skip this date, so the date will be 9/24.
In this case, put all your dates-to-skip in a range (say, X1:X100) and use the following updated formula:
Excel Formula:
=WORKDAY(EOMONTH(TODAY(),{0;1;2;3;4;5;6;7;8;9;10;11})+1,-4,X1:X100)
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

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