calculate the total time taken to complete a cycle in excel

noufi

New Member
Joined
Dec 19, 2018
Messages
6
i need to calculate, how mant minutes its takes to reach temperature 120(T1, time corresponding to blue color numbers), after reaching 120, how many minutes it is in between 119.5 to 120.5 deg temperature(T2, time corresponding to red colour numbers), and how many minutes after T2,(T3, time coresponding to green colour numbers).
T1 i calculated as:,=SUM(C1:INDEX($C$1:$C$25,MATCH(H8,$B$1:$B$25,0)-1))
[TABLE="class: outer_border, width: 50, align: left"]
<tbody>[TR]
[TD][TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, align: right"]1[/TD]
[/TR]
[TR]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD="align: right"]16[/TD]
[/TR]
[TR]
[TD="align: right"]17[/TD]
[/TR]
[TR]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD="align: right"]19[/TD]
[/TR]
[TR]
[TD="align: right"]20[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 158"]
<tbody>[TR]
[TD]Time[/TD]
[/TR]
[TR]
[TD]10:36:00[/TD]
[/TR]
[TR]
[TD]10:36:30[/TD]
[/TR]
[TR]
[TD]10:37:00[/TD]
[/TR]
[TR]
[TD]10:37:30[/TD]
[/TR]
[TR]
[TD]10:38:00[/TD]
[/TR]
[TR]
[TD]10:38:30[/TD]
[/TR]
[TR]
[TD]10:39:00[/TD]
[/TR]
[TR]
[TD]10:39:30[/TD]
[/TR]
[TR]
[TD]10:40:00[/TD]
[/TR]
[TR]
[TD]10:40:30[/TD]
[/TR]
[TR]
[TD]10:41:00[/TD]
[/TR]
[TR]
[TD]10:41:30[/TD]
[/TR]
[TR]
[TD]10:42:00[/TD]
[/TR]
[TR]
[TD]10:42:30[/TD]
[/TR]
[TR]
[TD]10:43:00[/TD]
[/TR]
[TR]
[TD]10:43:30[/TD]
[/TR]
[TR]
[TD]10:44:00[/TD]
[/TR]
[TR]
[TD]10:44:30[/TD]
[/TR]
[TR]
[TD]10:45:00[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][TABLE="width: 120"]
<colgroup><col></colgroup><tbody>[TR]
[TD]Temp[/TD]
[/TR]
[TR]
[TD]45.5[/TD]
[/TR]
[TR]
[TD]49.7[/TD]
[/TR]
[TR]
[TD]91[/TD]
[/TR]
[TR]
[TD]106[/TD]
[/TR]
[TR]
[TD]113.5[/TD]
[/TR]
[TR]
[TD]115.6[/TD]
[/TR]
[TR]
[TD]117.8[/TD]
[/TR]
[TR]
[TD]119.6[/TD]
[/TR]
[TR]
[TD]120[/TD]
[/TR]
[TR]
[TD]119.7[/TD]
[/TR]
[TR]
[TD]119.7[/TD]
[/TR]
[TR]
[TD]119.7[/TD]
[/TR]
[TR]
[TD]119.7[/TD]
[/TR]
[TR]
[TD]119.7[/TD]
[/TR]
[TR]
[TD]120.3[/TD]
[/TR]
[TR]
[TD]108.8[/TD]
[/TR]
[TR]
[TD]102.8[/TD]
[/TR]
[TR]
[TD]54.5[/TD]
[/TR]
[TR]
[TD]48.4[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD]Temp diff
[TABLE="width: 120"]
<colgroup><col></colgroup><tbody>[TR]
[TD][TABLE="width: 60"]
<colgroup><col></colgroup><tbody>[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
[TR]
[TD]0:00:30[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
now please help me to find T2 and T3.
H8: 120.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
GsstrO1
Hi noufi,

I suggest creating a small table in cells G12:I15 which will present the results of all 3 SUM formulas.

[TABLE="class: outer_border, width: 250, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]Sum (column H)[/TD]
[TD]Row No (column I)[/TD]
[/TR]
[TR]
[TD]T1[/TD]
[TD]00:04:00[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]T2[/TD]
[TD]00:03:30[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]T3[/TD]
[TD]00:02:00[/TD]
[TD]19[/TD]
[/TR]
</tbody>[/TABLE]
You already completed the first part (T1) ->
Sum: =SUM(C1:INDEX($C$1:$C$25,MATCH(H8,$B$1:$B$25,0)-1))
Row No: =MATCH(H8,$B$1:$B$25,0)-1

T2 can be calculated as ->
Sum: =SUM(INDEX(C:C,I13+1):INDEX(C:C,I14))
Row No (Array formula - Ctrl+Shift+Enter): =LARGE(--((B9:B19-120.5)>=-1)*ROW(B9:B19),1)

Finally, for T3 ->
Sum: =SUM(INDEX(C:C,I14+1):INDEX(C:C,I15))
Row No: =COUNTA(C:C)

Of course, you can combine Row No with Sum formulas, but I believe that it might be clearer to present the results in such form.
Hope it helps.
 
Upvote 0
I suggest creating a small table in cells G12:I15 which will present the results of all 3 SUM formulas.

[TABLE="class: outer_border, width: 250, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]Sum (column H)[/TD]
[TD]Row No (column I)[/TD]
[/TR]
[TR]
[TD]T1[/TD]
[TD]00:04:00[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]T2[/TD]
[TD]00:03:30[/TD]
[TD]15[/TD]
[/TR]
[TR]
[TD]T3[/TD]
[TD]00:02:00[/TD]
[TD]19[/TD]
[/TR]
</tbody>[/TABLE]
You already completed the first part (T1) ->
Sum: =SUM(C1:INDEX($C$1:$C$25,MATCH(H8,$B$1:$B$25,0)-1))
Row No: =MATCH(H8,$B$1:$B$25,0)-1

T2 can be calculated as ->
Sum: =SUM(INDEX(C:C,I13+1):INDEX(C:C,I14))
Row No (Array formula - Ctrl+Shift+Enter): =LARGE(--((B9:B19-120.5)>=-1)*ROW(B9:B19),1)

Finally, for T3 ->
Sum: =SUM(INDEX(C:C,I14+1):INDEX(C:C,I15))
Row No: =COUNTA(C:C)

Of course, you can combine Row No with Sum formulas, but I believe that it might be clearer to present the results in such form.
Hope it helps.[/QUOTE]


Hi JustynaMK,

Highly appreciated for your valuable reply.

It is working. but the thing is that, this is a variying process, the data will be different in next day(next cycle).

in this formula,

Row No (Array formula - Ctrl+Shift+Enter): =LARGE(--((B9:B19-120.5)>=-1)*ROW(B9:B19),1)

manually i need to change the range (B9:B19) . it is not easy to change range in each process. i think if i can change range also using formula, that would be better.

i found one formula mentioned below, but it is finding T3 also( combined T2 and T3) in one strech.

SUM(OFFSET($C$1,MATCH(H8,$B$1:$B$25,0),0,ROW($B$1:$B$25)-ROW($B$1)+1):C25)= 00:5:30 :(

hope u can help me on this too.
 
Upvote 0
Hi noufi,

Fair point! Let's replace "B9:B19" with INDEX formula which will be based on row number calculated in I13 (using your T1 formula) and row number calculated in I15 (last row number in array). Same as previously, you need to use Ctrl+Shift+Enter:
=LARGE(--((INDEX(B:B,I13+1):(INDEX(B:B,I15))-120.5) > =-1)*ROW((INDEX(B:B,I13+1):(INDEX(B:B,I15)))),1)

This should make the whole table dynamic. Let me know your thoughts.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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