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
8time of dayminutes of timeinterval (min.)interval (min.)
923:56:001436.00
1023:56:301436.500.500.50
1123:57:001437.000.500.50
1223:57:301437.500.500.50
1323:58:001438.000.500.50
1423:58:301438.500.500.50
1523:59:001439.000.500.50
1623:59:401439.670.670.67
170:00:100.17-1439.500.50
180:00:400.670.500.50
190:01:001.000.330.33
200:01:301.500.500.50
210:02:002.000.500.50
220:02:302.500.500.50
230:03:003.000.500.50

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

Worksheet Formulas
CellFormula
C10=([COLOR=rgb(255]HOUR(B10)*60+MINUTE(B10) +SECOND(B10)/60[/COLOR])
D10=C10-C9

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

<tbody>
</tbody>

Worksheet Defined Names
NameRefers To
Calc!b=Calc!$J$4

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

<tbody>
</tbody>
 
Last edited:

Some videos you may like

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Watch MrExcel Video

Forum statistics

Threads
1,122,372
Messages
5,595,787
Members
414,021
Latest member
whyjaydee

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
Top