Calculating duration for a min time and a max time

Spikenaylor

Board Regular
Joined
Apr 14, 2013
Messages
115
Office Version
  1. 365
Platform
  1. Windows
I have items going into a fridge
the first item goes in and the temp and humidty of the fridge goes out and comes back in at some point, same with the other items.

The time the fridge comes back into spec after all items are placed into the fridge is the time used as the earliest that the last item can come out in 69 hours

The first item placed in the fridge has an amended time due to fridge going in and out of spec.
this amended time is the time used for the latest time the first item can be removed from the fridge in 75 hours.


for my calculations:

I have a start date and time

01-07-18 12:15

I have an amended start time

01-07-18 10:54

my minimum duration is the start date and time + 69 hrs
my maximum duration is the amended start date and time +75 hrs

so:
my earliest removal time is 04-7-18 09:15
my latest time is 04-07-18 13:54

my actual date and time of removal is

<tbody>
</tbody>

04-07-18 09:15

this should give a duration of 69:00

change the actual removal to
04-07-18 13:54
this should give a duration of 75:00

I cant get the formula to use the amended time as well as the earliest time to give me the correct result
the problem being is I have two effective start times

any help or guidance much appreciated


DateFridge reached spec after last item enteredamended time for first item entered into fridge due to out of specEarliest date and time final item can be removed (+69 hrs)Latest date and time first item can be removed (+75 hrs)Date and time of removal of all itemsDuration
01-07-1812:1510:5404-07-18 09:15 ((A2+B2)+69hrs)04-07-18 13:54 ((A2+C2)+75hrs)04-07-18 09:15=F2-?
If removed at 09:15 then duration is 69hrs
If removed at 13:54 then the duration is 75hrs

<tbody>
</tbody>
 

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

Forum statistics

Threads
1,214,926
Messages
6,122,305
Members
449,079
Latest member
juggernaut24

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