# Due date cannot be a weekend

#### tati69angel

##### New Member
Hello:

I'm sorry at how silly this question may sound to most of you but I am racking my brain try to figure this out. I am creating a formula that will calculate due dates from a specific start/end date. For example:

If the item was received on August 1, 2010, this task needs to be completed by within ten days. However, the tenth day cannot be a weekend. If if is, then the task should be completed the Friday before.

IE: Initial Assigment received June 24, 2010 (A4)
Acknowledgment letter must be sent within 10 days

=A4+10 results are Sunday July 4, 2010. I need it to say July 2, 2010

By the same token, I also need to be able to subtract to the nearest weekday. For example if the start date of a project is November 1, 2010, certain tasks must be completed 15 days before. But this date cannot be a weekend, it must be the Friday before the weekend day it falls on.

IE: Project Start Date is 11/1/10 (C4)
Letters must be sent 15 days before start date.
=C4-15 results are Sunday October 17, 2010.
I need the results to return Friday, October 15, 2010

Any help would be greatly appreciated.

Thanks again.

### Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

#### tusharm

##### MrExcel MVP
Untested...

={rslt}-max(0,weekday({rslt},2)-5)
where {rslt} is the resulting date without the weekend adjustment.

#### tati69angel

##### New Member
Thanks for the response. Would I begin by inserting =A4+10 and then add your formula?

ie: =A4+10={rslt}-max(0,weekday({rslt},2)-5

Replies
3
Views
321
Replies
8
Views
598
Replies
3
Views
105
Replies
3
Views
441
Replies
0
Views
413

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,703
Messages
5,833,218
Members
430,197
Latest member
edeibold

### 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.

### Which adblocker are you using?

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

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