Excel if the day is a monday tuesday wednesday move to next monday. if thursday, friday move to the following monday

Rami912

New Member
Joined
Nov 3, 2016
Messages
7
Hello,

I need help setting a formula for lead time in transit. The receipt date always must fall on a Monday. So when someone ships on a monday, tuesday, wednesday then the dock date should equal to the following monday and if the ship date is thursday or friday then the dock date must fall on the next monday

example:

ship date: 11/07/2016 to 11/09/2016 = 11/14/2016 but if ship date 11/10/2016 to 11/11/2016 - 11/21/2016 dock date

Thank you,

RA
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I also have excel 2013 and it worked. Thank you. I was just not ready for change from 2007 to 2013
 
Upvote 0
Ok, try this instead

=A1+MATCH("Wed",TEXT(A1+{1,2,3,4,5,6,7},"ddd"),0)+5
 
Upvote 0
I think it should be

=A1+MATCH("Wed",TEXT(A1+{0,1,2,3,4,5,6},"ddd"),0)+4

to satisfy 11/9/2016 --> 11/14/2016
 
Upvote 0
Ah I misread it, good catch.
I did Monday+Tuesday ships following monday, Wed+Thu+Fri ships the next monday..

But would also have to change Wed to Thu


So they should actually be
=WORKDAY.INTL(A1,1,"1110111")+4
and
=A1+MATCH("Thu",TEXT(A1+{1,2,3,4,5,6,7},"ddd"),0)+4
 
Upvote 0
Wednesday is kind of open for either first or second monday but either one works. Thanks everyone for all your help
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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