Calculate workdays based on lead time

snejsnej

New Member
Joined
May 3, 2010
Messages
45
Hi,

I have a base date (in the example below "$I$4) from which I would like to subtract a lead time (in days). The output should be the date at which a particular task must be started in order to complete it by the base date deadline.

This is what I have, and it seems to work fine, but I'm worried that there may be a case (excluding holidays), where the (H13*7/5) may throw the dates off:

=IF((C13="Y"), IF(H13<>"",+$I$4-(H13*7/5),""),"")

Can this be improved upon?

Thanks,
Jens
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Perhaps

=IF(AND(C13="Y", H13<>""), WORKDAY($I$4, -H13), "")


WORKDAY will also accept a range containing holidays.
 
Upvote 0
I tried using the Goal-Seek.. (in xl2007) feature - Data, What If Analysis... Goal Seek
and it seemed to work fine. I started ONLY with the following...
Excel Workbook
ABCDEFGHIJK
1Holidays
25/31/2011
3Must Start ByMust Have By:6/9/2011
4Guess Value to Begin ->>5/1/20116/15/2011
5
631<< Lead Time (In Days) Required
Sheet1
Excel 2007
Cell Formulas
RangeFormula
E6=NETWORKDAYS(E4,I4,K2:K3)



then select cell E6 - From Data Tab, What If Analysis, Goal Seek
Set Cell - enter E6
To Value - enter say 20
By Changing Cell - enter E4
OK,

Your sheet should now look as follows..
Note the Value in Cell E4 AFTERWARDS...
Excel Workbook
ABCDEFGHIJK
1Holidays
25/31/2011
3Must Start ByMust Have By:6/9/2011
4Guess Value to Begin ->>5/17/20116/15/2011
5
620<< Lead Time (In Days) Required
Sheet1
Excel 2007
Cell Formulas
RangeFormula
E6=NETWORKDAYS(E4,I4,K2:K3)
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,792
Members
452,942
Latest member
VijayNewtoExcel

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