Finding the 15th of Next Month but Not on Weekends

tsroque

Board Regular
Joined
Jan 19, 2007
Messages
127
Office Version
  1. 365
I need a formula to find the 15th of the NEXT month BUT if the 15th falls on a weekend, I need it to default to Monday. Any suggestions? ;)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Code:
=IF(WEEKDAY(DATE(YEAR(NOW()),MONTH(NOW())+1,15),2)<6,DATE(YEAR(NOW()),MONTH(NOW())+1,15),IF(WEEKDAY(DATE(YEAR(NOW()),MONTH(NOW())+1,15),2)=6,DATE(YEAR(NOW()),MONTH(NOW())+1,15)+2,IF(WEEKDAY(DATE(YEAR(NOW()),MONTH(NOW())+1,15),2)=7,DATE(YEAR(NOW()),MONTH(NOW())+1,15)+1)))

It's a tad bit long and messy. But it should do what you want. Basically what this says is:

If the next month's 15 is equal to Monday through Friday (1-5) then return the 15th. Otherwise, if it's equal to Saturday (6) return the 15th + 2. Or, if it's Sunday (7), return the 15th plus 1.
 
Upvote 0
Ah! Perfect!
I actually changed the NOW() to reference a cell with a date, and it's right on the money!!!
Thank you so much!!!
 
Upvote 0
Ah! Perfect!
I actually changed the NOW() to reference a cell with a date, and it's right on the money!!!
Thank you so much!!!

Assuming that cell reference is A1, then I think this formula will work correctly for you (test it, of course)...

=WORKDAY(DATE(YEAR(A1),MONTH(A1)+1,14),1)

NOTE: If the answer to rollis13's question (Message #6) is "yes", then note that the WORKDAY function has an optional 3rd argument that lets you specify a range of cells containing holidays that will be skipped over).
 
Last edited:
Upvote 0
May I ask ? What if the 15th or the next monday is a national Holiday ? Would it care for you ?
 
Last edited:
Upvote 0
The formula isn't being used across the board but to automate our promotions. Holidays are calculated automatically since those are when our promos are displayed (ex. Black Friday). Basically we change our pricing every month on the 15th unless it falls on a Monday. Then the next level is just +1 day from that or End of Month (EOMONTH) UNLESS it follows a promotion. ;)

I just tried it out for future years and it's PERFECT! ;)
 
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