Rounding due date to earliest Friday

tati69angel

New Member
Joined
Aug 6, 2010
Messages
5
Hello:

Any help with this would be greatly appreciated. I need help with rounding a due to date to the earliest friday. For example:

If order is received on 6/24/10 (A4) then confirmation must be sent out within ten days

A4 + 10= 7/4/10. The 4th is a saturday.

However, if the result is a saturday or sunday, it needs to be rounded to the Friday before.

I also need to subtract in the same manner.

Ie: if due date is 11/1/10 then reminder letters must be sent out 15 days before.

A4-15 = 10/17/10 which is a sunday and needs to become Friday.

Please help. thank you so much.


<!-- / message -->
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Below formula will get what you need for the due date always being a Friday if the +10 days falls on Sat or Sunday. You should be able to figure out how formula is working & adapt for your reminder letters -- if not, let me know.

=IF(WEEKDAY(A4+10,2)<=5,A4+10,IF(WEEKDAY(A4+10,2)=6,A4+9,A4+8))
 
Upvote 0
Try

=A4+10-(WEEKDAY(A4+10)=7)-(WEEKDAY(A4+10)=1)*2

and

=A6-15-(WEEKDAY(A6-15)=7)-(WEEKDAY(A6-15)=1)*2
 
Upvote 0
worked like a charm! thank you so much. now i just have to figure out how to save this formula so that i can reuse it. Thanks again!
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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