Time Difference

Maddy1234

New Member
Joined
Mar 9, 2018
Messages
24
Hi experts,

I come with another problem.I have a dynamic set of data which updates according to the user input in another sheet. The data set looks like below.




Time StartedTime Ended
Exercise 19:009:15
Exercise 29:1510:15
Exercise 310:1511:15
Exercise 411:1512:15
Exercise 512:1513:15
Exercise 613:1514:15
Exercise 714:1515:15
Exercise 815:1516:15
Exercise 916:1517:15
Exercise 1017:1518:15

<colgroup><col><col><col></colgroup><tbody>
</tbody>

What I want to achieve is the total elapsed time for all the exercises. So ideally I want to get the value MOD((C11-B2),1). But the problem I have is the data set is dynamic and I don't know how many rows Im gonna have so the C11 might change to something else.

Can you please educate me on how to retrieve the last valid row so I can get this to work?

Many thanks.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
=MOD(LOOKUP(9.99999999E+307,C:C)-B2,1)


Excel 2010
ABCDE
1Time StartedTime Ended
2Exercise 19:009:159:15
3Exercise 29:1510:15
4Exercise 310:1511:15
5Exercise 411:1512:15
6Exercise 512:1513:15
7Exercise 613:1514:15
8Exercise 714:1515:15
9Exercise 815:1516:15
10Exercise 916:1517:15
11Exercise 1017:1518:15
Sheet1
Cell Formulas
RangeFormula
E2=MOD(LOOKUP(9.99999999E+307,C:C)-B2,1)
 
Upvote 0
Thanks mate works perfectly.

=MOD(LOOKUP(9.99999999E+307,C:C)-B2,1)

Excel 2010
ABCDE
1Time StartedTime Ended
2Exercise 19:009:159:15
3Exercise 29:1510:15
4Exercise 310:1511:15
5Exercise 411:1512:15
6Exercise 512:1513:15
7Exercise 613:1514:15
8Exercise 714:1515:15
9Exercise 815:1516:15
10Exercise 916:1517:15
11Exercise 1017:1518:15

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
E2=MOD(LOOKUP(9.99999999E+307,C:C)-B2,1)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,099
Messages
6,128,819
Members
449,469
Latest member
Kingwi11y

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