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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

rallcorn

Well-known Member
Joined
Nov 11, 2008
Messages
1,027
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))
 

xld

Banned
Joined
Feb 8, 2003
Messages
5,378
Try

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

and

=A6-15-(WEEKDAY(A6-15)=7)-(WEEKDAY(A6-15)=1)*2
 

tati69angel

New Member
Joined
Aug 6, 2010
Messages
5
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!
 

Watch MrExcel Video

Forum statistics

Threads
1,133,272
Messages
5,657,775
Members
418,413
Latest member
Radoslaw Poprawski

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
Top