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
<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>
[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]
Also, other sets of data used in this spreadsheet may not include 12 midnight...I appreciate your help!
Excel 2010 32 bit
B | C | D | E | F | G | |
---|---|---|---|---|---|---|
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: