Formula for calculating EOM when Saturday is a workday

UFGATORS

Board Regular
Joined
Nov 28, 2008
Messages
136
Office Version
  1. 365
Hello, I have a facility where their workweek is Monday through Saturday an I need to be able to determine which day of the month will be the last workday, EOM. I'm currently using this formal for a normal 5-day workweek "=IF(WORKDAY(EOMONTH($L$2,0)+1,-1,holidays)=AJ2,"EOM","")". I did some reading and it looks like I need to use the WORKDAY.INTL function but I can't figure it out. Starting at AJ1:AP1 the above formula is entered, the dates are on line two L2:AP2. I need for the EOM to appear on the last work day of the month with Saturday being the last day of the workweek. Thanks for the help.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Rich (BB code):
=EOMONTH(TODAY(),0)-(7-WEEKDAY(EOMONTH(TODAY(),0),2))

Replace TODAY() with the date in the month you want to check.

Oooo.... I see you can't include Sunday.

Try this:

Rich (BB code):
=IF(WEEKDAY(EOMONTH(TODAY(),0),2)=7,EOMONTH(TODAY(),0)-1,EOMONTH(TODAY(),0))
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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