if elseif formula

kod2th3e

Board Regular
Joined
Apr 2, 2008
Messages
87
I am trying to create a formula that will calculate the estimated completion time of a piece of product. Heres the layout of the sheet:


C2 is 6:30AM - (Start Time)
C3 is 9:30AM - (1st Break)
C4 is 12:00PM - (2nd Break)
E2 is 0:36:00 - (Cycle Time of Unit)
E3 is 0:10:00 - (Length of 1st break)
E4 is 0:20:00 - (Length of 2nd break)

from cell B10 going down I would like the formula to calculate the estimated completion time. So, B10 would be the start time (6:30 AM) + the Cycle time (0:36:00) = 7:06:00 AM, B11 would be the previous units estimated completion (7:06:00 AM) + the Cycle time (0:36:00) = 7:42:00 AM, and so on... Now the tricky part is if the completion of a unit lands during the 1st break or 2nd break time the estimated completion time would be pushed out by the duration of the break. For example if a unit was slated to be completed at 9:32, it would end up showing a time of 9:42 and if a unit was slated to be completed at 12:19 it would end up showing a time of 12:39.


Any advice/help would be appreciated, thanks for looking.
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,216,175
Messages
6,129,310
Members
449,499
Latest member
HockeyBoi

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