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!
=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!