Add Time To A Date

Danno4G94

New Member
Joined
Sep 7, 2010
Messages
3
I have tried for a while on this, searched like crazy but have not had much luck, any help is appreciated. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p></o:p>
I have found another thread that has been quite helpful but does not quite address my needs.<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
What I am looking for is a formula that can add hours from a start date and time that will give me an end date and time excluding weekends and holidays based on 24 hours per day working days 5 days a week (Monday to Friday)<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p>This is what I have so far:
</o:p>A1 = Quantity of units (50,000)<o:p></o:p>
B1 = pcs/minute (90)<o:p></o:p>
C1 =A1/B1/60 (time needed for production run)<o:p></o:p>
D1 = Start Date & Time (09/03/10 01:00)<o:p></o:p>
E1 = =WORKDAY(D1,MOD(D1,1)+C1)+MOD(MOD(D1,1)+C1,1) (a formula I found that works for the weekday but not for the holidays)<o:p></o:p>
<o:p></o:p>
H2-H8 = Holidays ("Holidays" are defined)

I am using Excel 2007 and Windows XP

Thanks,
Dan
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Hello Dan,

You should just be able to add the holiday range as the 3rd argumet in WORKDAY, i.e.

=WORKDAY(D1,MOD(D1,1)+C1,H2:H8)+MOD(MOD(D1,1)+C1,1)
 
Upvote 0

Forum statistics

Threads
1,215,569
Messages
6,125,600
Members
449,238
Latest member
wcbyers

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