Dealing with date, time and subtraction

kilosub

Board Regular
Joined
Jan 7, 2009
Messages
116
Hi All,

How do I compute 10/7/2015 0:02 41023 - 10/6/2015 0:02 40773?

The time I've format it to h:mm. Below is the part of the data which is recorded hourly



abc
10/7/20150:0241,023.00
10/6/201523:0241,012.00
10/6/201522:0241,002.00
10/6/201521:0240,991.00
10/6/201520:0240,980.00
10/6/201519:0240,969.00
10/6/201518:0240,958.00
10/6/201517:0240,947.00
10/6/201516:0240,936.00
10/6/201515:0240,925.00
10/6/201514:0240,914.00
10/6/201513:0240,904.00
10/6/201512:0240,893.00
10/6/201511:0240,882.00
10/6/201510:0240,871.00
10/6/20159:0240,860.00
10/6/20158:0240,849.00
10/6/20157:0240,838.00
10/6/20156:0240,827.00
10/6/20155:0240,816.00
10/6/20154:0240,806.00
10/6/20153:0240,795.00
10/6/20152:0240,784.00
10/6/20151:0240,783.00
10/6/20150:0240,773.00

<tbody>
</tbody>


Thank you and regards,


Norman
 
DateTimehut1hut2hut3hut1hut2hut3ROW1
31/08/201500:0230,973.0060,785.008,431.0031/08/2015n/an/an/aROW2
01/09/201500:0231,262.0061,136.008,549.0001/09/2015289351118ROW3
02/09/201500:0231,550.0061,486.008,666.0002/09/2015288350117ROW4
03/09/201500:0231,837.0061,835.008,782.0003/09/2015287349116ROW5
04/09/201500:0232,123.0062,183.008,897.0004/09/2015286348115ROW6
05/09/201500:0232,408.0062,530.009,011.0005/09/2015285347114ROW7
06/09/201500:0232,692.0062,876.009,124.0006/09/2015284346113hut1hut2hut3ROW8
07/09/201500:0232,975.0063,221.009,236.0007/09/2015283345112N9>>>>>>01/09/20158228101713071ROW9
08/09/201500:0233,257.0063,565.009,347.0008/09/2015282344111N10>>>>>01/10/2015ROW10
09/09/201500:0233,538.0063,908.009,457.0009/09/2015281343110ROW11
10/09/201500:0233,818.0064,250.009,566.0010/09/2015280342109ROW12
11/09/201500:0234,097.0064,591.009,674.0011/09/20152793411088228 calculated byROW13
12/09/201500:0234,375.0064,931.009,781.0012/09/2015278340107ROW14
13/09/201500:0234,652.0065,270.009,887.0013/09/2015277339106=SUMPRODUCT(($H$3:$H$39>=$N9)*($H$3:$H$39<$N10)*($I$3:$I$39))ROW15
14/09/201500:0234,928.0065,608.009,992.0014/09/2015276338105ROW16
15/09/201500:0235,203.0065,945.0010,096.0015/09/2015275337104ROW17
16/09/201500:0235,477.0066,281.0010,199.0016/09/2015274336103ROW18
17/09/201500:0235,750.0066,616.0010,301.0017/09/2015273335102the right hand table now autopopulatesROW19
18/09/201500:0236,022.0066,950.0010,402.0018/09/2015272334101 as you add new data to the left hand tableROW20
19/09/201500:0236,293.0067,283.0010,502.0019/09/2015271333100ROW21
20/09/201500:0236,563.0067,615.0010,601.0020/09/201527033299ROW22
21/09/201500:0236,832.0067,946.0010,699.0021/09/201526933198the formula in the empty cell to the leftROW23
22/09/201500:0237,100.0068,276.0010,796.0022/09/201526833097of the cell marked ###### isROW24
23/09/201500:0237,367.0068,605.0010,892.0023/09/201526732996ROW25
24/09/201500:0237,633.0068,933.0010,987.0024/09/201526632895=IF($H40="","",E40-E39)ROW26
25/09/201500:0237,898.0069,260.0011,081.0025/09/201526532794ROW27
26/09/201500:0238,162.0069,586.0011,174.0026/09/201526432693H40 will only fill if A40 is not blankROW28
27/09/201500:0238,425.0069,911.0011,266.0027/09/201526332592ROW29
28/09/201500:0238,683.0070,259.0011,345.0028/09/201525834879ROW30
29/09/201500:0238,943.0070,605.0011,423.0029/09/201526034678ROW31
30/09/201500:0239,201.0070,956.0011,502.0030/09/201525835179ROW32
01/10/201500:0239,463.0071,302.0011,580.0001/10/201526234678ROW33
02/10/201500:0239,723.0071,643.0011,659.0002/10/201526034179ROW34
03/10/201500:0239,986.0071,983.0011,737.0003/10/201526334078ROW35
04/10/201500:0240,247.0072,312.0011,816.0004/10/201526132979ROW36
05/10/201500:0240,510.0072,638.0011,894.0005/10/201526332678ROW37
06/10/201500:0240,773.0072,960.0011,973.0006/10/201526332279ROW38
07/10/201500:0241,023.0073,272.0012,051.0007/10/201525031278ROW39
H40>>>>#####ROW40
ROW41
ROW42
ABCDEFGHIJKLMNOPQRST

<colgroup><col><col><col span="3"><col><col><col><col span="5"><col><col span="7"></colgroup><tbody>
</tbody>
 
Upvote 0

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Forum statistics

Threads
1,215,578
Messages
6,125,642
Members
449,245
Latest member
PatrickL

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