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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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,223,889
Messages
6,175,224
Members
452,620
Latest member
dsubash

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