here's a fun and easy one, I just ain't smart 'nuff

Skidood

New Member
Joined
Jan 1, 2018
Messages
35
Hi there...see below that I am computing the time interval from a series of timestamps. If the series covers midnight, I get a negative value which screws me up. How can I get a column matching the blue one? Note, there are 1440 minutes in a day.

Also, other sets of data used in this spreadsheet may not include 12 midnight...I appreciate your help!



Excel 2010 32 bit
BCDEFG
minutes of time

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]8[/TD]
[TD="align: center"]time of day[/TD]

[TD="align: center"]interval (min.)[/TD]
[TD="align: right"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]interval (min.) [/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]
[TD="align: center"]23:56:00[/TD]
[TD="align: center"]1436.00[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"][/TD]
[TD="align: center"][/TD]

[TD="align: center"]10[/TD]
[TD="align: center"]23:56:30[/TD]
[TD="align: center"]1436.50[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]11[/TD]
[TD="align: center"]23:57:00[/TD]
[TD="align: center"]1437.00[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]12[/TD]
[TD="align: center"]23:57:30[/TD]
[TD="align: center"]1437.50[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]13[/TD]
[TD="align: center"]23:58:00[/TD]
[TD="align: center"]1438.00[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]14[/TD]
[TD="align: center"]23:58:30[/TD]
[TD="align: center"]1438.50[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]15[/TD]
[TD="align: center"]23:59:00[/TD]
[TD="align: center"]1439.00[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]16[/TD]
[TD="align: center"]23:59:40[/TD]
[TD="align: center"]1439.67[/TD]
[TD="align: center"]0.67[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.67[/TD]
[TD="align: center"][/TD]

[TD="align: center"]17[/TD]
[TD="align: center"]0:00:10[/TD]
[TD="bgcolor: #FFFF00, align: center"]0.17[/TD]
[TD="align: center"]-1439.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]18[/TD]
[TD="align: center"]0:00:40[/TD]
[TD="align: center"]0.67[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]19[/TD]
[TD="align: center"]0:01:00[/TD]
[TD="align: center"]1.00[/TD]
[TD="align: center"]0.33[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.33[/TD]
[TD="align: center"][/TD]

[TD="align: center"]20[/TD]
[TD="align: center"]0:01:30[/TD]
[TD="align: center"]1.50[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]21[/TD]
[TD="align: center"]0:02:00[/TD]
[TD="align: center"]2.00[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]22[/TD]
[TD="align: center"]0:02:30[/TD]
[TD="align: center"]2.50[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

[TD="align: center"]23[/TD]
[TD="align: center"]0:03:00[/TD]
[TD="align: center"]3.00[/TD]
[TD="align: center"]0.50[/TD]
[TD="align: center"][/TD]
[TD="bgcolor: #C5D9F1, align: center"]0.50[/TD]
[TD="align: center"][/TD]

</tbody>
Calc

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #F0E0E0"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #F0E0E0"]C10[/TH]
[TD="align: left"]=([COLOR=rgb(255]HOUR(B10)*60+MINUTE(B10) +SECOND(B10)/60[/COLOR])[/TD]
[/TR]
[TR]
[TH="width: 10px, bgcolor: #F0E0E0"]D10[/TH]
[TD="align: left"]=C10-C9[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Defined Names[TABLE="width: 100%"]
<thead>[TR="bgcolor: #F0E0E0"]
[TH="width: 10px"]Name[/TH]
[TH="align: left"]Refers To[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #F0E0E0"]Calc!b[/TH]
[TD="align: left"]=Calc!$J$4[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Last edited:

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,223,893
Messages
6,175,241
Members
452,622
Latest member
Laura_PinksBTHFT

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