Date calculation based on weekend scenerios

sjha

Active Member
Joined
Feb 15, 2007
Messages
355
Need to calculate ‘Install’ days based on scenarios. I have lists of ‘Training’ Days and ‘Install’ days should be 5 calendars prior to ‘Training’ days.

(1) if ‘Install’ date falls on Sunday then show next Monday date. i.e. My ‘Training’ date is 8/8/2009, and ‘Install’ date is 8/2/2009 but this date falls on Sunday so show 8/3/2009 which is Monday date.

(2) if ‘Install’ date falls on Saturday then show Friday date. i.e. My ‘Training’ date is 8/7/2009, and ‘Install’ date is 8/1/2009 but this date falls on Saturday so show 7/31/2009 which is Friday date.

Your help is much appreciated. Thank you.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Just to be quick, try using the WEEKDAY function and an IF statement using the Return type to either add a day or subtract.

Hope this helps
 
Upvote 0
Actually still having an issue. I have two parts formula and I need to put them together so that this becomes one formula.

Results should be based on either or:

First formula:=IF(WEEKDAY(X5)=7,X5-1,X5)
Second formula:=IF(WEEKDAY(X5)=1,X5+1,X5)

Thank you.
 
Upvote 0
Hello sjha,

You say that the install day should be 5 days before training day but your examples show 6 so, with training day in A1 get install day with this formula

=A1-CHOOSE(WEEKDAY(A1),6,6,6,6,6,7,5)
 
Upvote 0

Forum statistics

Threads
1,214,615
Messages
6,120,538
Members
448,970
Latest member
kennimack

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