Next Availble Date from Given Date

ExcelRoy

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

I am trying to calculate the next available delivery date , either Tuesday or Thursday based on the date given in Q10 first but N10 if there is a date entered

The delivery slots would be only weekday Tuesday or Thursday, excluding the weekends

many thanks for any help
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Which version of XL are you using?
This will work in XL 2010+
=WORKDAY.INTL(O10,1,"1010111")

It wasn't clear how you choose Q10 or N10, so you may need to add an if in there, or provided a more clear explanation.
Also, what should happen if the date is already a Tuesday or Thursday? Should it just return that same date, or go to the next one? (the formula as is goes to the next one)
 
Upvote 0
Hi Jonmo1,

Excel 2007 is what I am using and this formula looks like it isn't supported yet by 2007 unfortunately

There is an automated date in Q10 but if nothing is there move onto a manually entered date in N10

Yes the next date would be the way to go if the date is already the Tuesday/Thursday

Thanks
 
Upvote 0
Here's one way.

=IF(O10<>"",O10,N10)+LOOKUP(WEEKDAY(IF(O10<>"",O10,N10)),{1;2;3;4;5;6;7},{2;1;2;1;5;4;3})
 
Upvote 0
Thanks Jonmo1,

just one last thing, if both Q10 and N10 are empty, can the formula return ""

Many thanks for your help
 
Upvote 0
Try

=IF(COUNT(O10,N10)>0,IF(O10<>"",O10,N10)+LOOKUP(WEEKDAY(IF(O10<>"",O10,N10)),{1;2;3;4;5;6;7},{2;1;2;1;5;4;3}),"")
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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