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

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"

Forum statistics

Threads
1,224,551
Messages
6,179,480
Members
452,915
Latest member
hannnahheileen

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