VBA IF date is first week of month then add 4 days on

Nikijune

Board Regular
Joined
Aug 16, 2016
Messages
51
Hello,

I am trying to automate a report request form, which currently automatically provides a completion date depending on the severity of the report, however, what I would like it to do now is add 4 days onto that date if the date is within the first 7 days of the month. This is because the first week of the month is the busiest time for us and we do not have capacity to complete additional requests in this time.

My current formula looks at what todays date is, and then adds on however many days. It is this date that I want to add 4 more working days onto.

I am not sure if this will be VBA or just a simple formula. Any ideas??

Thanks :)
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Nikijune,

Try replace your 'Current Formula' with...

Code:
=IF(DAY(Current Formula)>7,Current Formula,Current Formula+4)

Hope that helps.
 
Upvote 0
Thanks for your help Snakehips, much simpler than what I was trying for :)

It's not working quite how I need it to as it is now giving me weekend dates.

This is what it is looking like;

=IF(DAY(WORKDAY(C16,C15))>7,WORKDAY(C16,C15),WORKDAY(C16,C15)+4)

The date in C16 is todays date and C15 contains the number of days to add on to todays date depending on the severity.

The workday(C16,C15) part of the formula works ok, but the new part to add 4 extra days on if it is within the first week is showing weekend dates. Any ideas?

Thank You :)
 
Upvote 0
Does =IF(DAY(WORKDAY(C16,C15))>7,WORKDAY(C16,C15),WORKDAY(C16,C15+4)) do it ?

It can still generate a fresh date that is within the first week of following month but it will be extended by 4 workdays beyond the original.
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,765
Members
449,049
Latest member
greyangel23

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