Next Delivery Slote Date Required

ExcelRoy

Well-known Member
Joined
Oct 2, 2006
Messages
2,540
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to calculate a delivery slot from a date given in N11 or M11 if N11 is blank

The delivery slots would be only weekday Tuesday or Friday

many thanks for any help
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Is it the next first Tuesday or Friday following the date ?
 
Upvote 0
If yes to previous comment ... try

=N11+MIN((IF(5-(WEEKDAY(IF(N11 = "";M11;N11);2))<0;7+5-(WEEKDAY(IF(N11 = "";M11;N11);2));5-(WEEKDAY(IF(N11 = "";M11;N11);2))));(IF(2-(WEEKDAY(IF(N11 = "";M11;N11);2))<0;7+2-(WEEKDAY(IF(N11 = "";M11;N11);2));2-(WEEKDAY(IF(N11 = "";M11;N11);2)))))
 
Upvote 0
Hi PCL,

Thanks for the help but it seems to throw an error?

it highlights the first double quotes as the issue?
 
Upvote 0
It seems that the formula separator in your Excel is the comma
Change all ; to ,
 
Last edited:
Upvote 0
Hi PCL,

Many thanks got it working but it doesn't show a valid date for an entry in M11?

Thanks
 
Upvote 0
" it doesn't show a valid date for an entry in M11?"
When N11 is empty is it ?
 
Upvote 0
YEs a msitake in the final rush: See beginning of next formula


=IF(N11 = "";M11;N11)+MIN((IF(5-(WEEKDAY(IF(N11 = "";M11;N11);2))<0;7+5-(WEEKDAY(IF(N11 = "";M11;N11);2));5-(WEEKDAY(IF(N11 = "";M11;N11);2))));(IF(2-(WEEKDAY(IF(N11 = "";M11;N11);2))<0;7+2-(WEEKDAY(IF(N11 = "";M11;N11);2));2-(WEEKDAY(IF(N11 = "";M11;N11);2)))))
 
Upvote 0

Forum statistics

Threads
1,225,739
Messages
6,186,738
Members
453,369
Latest member
juliewar

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