Last Working Day of a Month

Rick_Betori

New Member
Joined
Dec 23, 2013
Messages
16
I am using the below formula to find the last workday of a given month based off of today's date (the "+1" at the end outside of the parentheses is because my company's workday ends on a Saturday, not a Friday)

=WORKDAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,1),-1)+1

However, when I use this equation (with Today's date being 1/2/2014), it will return a date of 2/1/2014 (because my equation "
=WORKDAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,1),-1)" gives 1/31/2014 (Friday) +1 = Saturday, February 1).

I want my formula to be set up so that if this formula were to cause the date to be in the next month (February in this instance), it could revert back to the previous week (thus giving me the previous Saturday as my date, which would be 1/25/2014).

Any help would be greatly appreciated!
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Use =EOMONTH(Your formula or date,1)


The 1 is the number of months, forwards or backwards

The below are european date formats

If you had 1/2/14 in A1, type =EOMONTH(A1,0) into A2 and it gives you 28/2/14
 
Last edited:
Upvote 0
However, when I use this equation (with Today's date being 1/2/2014), it will return a date of 2/1/2014 (because my equation "=WORKDAY(DATE(YEAR(TODAY()),MONTH(TODAY())+1,1),-1)" gives 1/31/2014 (Friday) +1 = Saturday, February 1).

I want my formula to be set up so that if this formula were to cause the date to be in the next month (February in this instance), it could revert back to the previous week (thus giving me the previous Saturday as my date, which would be 1/25/2014).
What if TODAY's date were 1/28/2014... would you still want 1/25/2014 returned to you?
 
Upvote 0
=if(weekday(eomonth(today(),0),1)=7,eomonth(today(),0)-1,if(weekday(eomonth(today(),0),1)=1,eomonth(today(),0)-2,eomonth(today(),0)))
 
Upvote 0

Forum statistics

Threads
1,222,636
Messages
6,167,221
Members
452,104
Latest member
jadethejade

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