Hello.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
I need to calculate the time intervals between two moments in duration of four days. The results in format of [h]:mm then will be used to draw a chart. <o></o>
<o></o>
I am using IF statement as =IF(A1>B1,B1+1-A1,B1-A1); however for times after 24h (next day) this statement does not work.
<o></o>
e.g., <o></o>
<o></o>
A1: 2010-0-01 11:15:00 00:00:00<o></o>
A2: 2010-0-01 14:15:00 03:00:00<o></o>
A3: 2010-0-01 15:47:00 04:32:00<o></o>
A4: 2010-0-01 18:02:00 06:47:00<o></o>
A5: 2010-0-02 12:25:00 01:10:00 must be 25:10:00<o></o>
A6: 2010-0-02 15:48:00 04:33:00 must be 28:33:00<o></o>
A7: 2010-0-02 16:48:00 05:33:00 must be 29:33:00<o></o>
A8: 2010-0-03 10:16:00 23:01:00 must be 47:01:00<o></o>
...<o></o>
I tried different methods such as<o></o>
=INT(A2-A$1)&"days,"&TEXT(MOD(A2-A$1,1)*24,"0.00")&"hours"<o></o>
<o></o>
but it is not useful for me since the results are in text format which can't be used for next step calculations and also bc it gives me d:mm:ss format while I need [h]:mm (days in the form of hours).
<o></o>
Thank you for your help in advance. <o></o>
Elham<o></o>
<o> </o>
<o> </o>
I need to calculate the time intervals between two moments in duration of four days. The results in format of [h]:mm then will be used to draw a chart. <o></o>
<o></o>
I am using IF statement as =IF(A1>B1,B1+1-A1,B1-A1); however for times after 24h (next day) this statement does not work.
<o></o>
e.g., <o></o>
<o></o>
A1: 2010-0-01 11:15:00 00:00:00<o></o>
A2: 2010-0-01 14:15:00 03:00:00<o></o>
A3: 2010-0-01 15:47:00 04:32:00<o></o>
A4: 2010-0-01 18:02:00 06:47:00<o></o>
A5: 2010-0-02 12:25:00 01:10:00 must be 25:10:00<o></o>
A6: 2010-0-02 15:48:00 04:33:00 must be 28:33:00<o></o>
A7: 2010-0-02 16:48:00 05:33:00 must be 29:33:00<o></o>
A8: 2010-0-03 10:16:00 23:01:00 must be 47:01:00<o></o>
...<o></o>
I tried different methods such as<o></o>
=INT(A2-A$1)&"days,"&TEXT(MOD(A2-A$1,1)*24,"0.00")&"hours"<o></o>
<o></o>
but it is not useful for me since the results are in text format which can't be used for next step calculations and also bc it gives me d:mm:ss format while I need [h]:mm (days in the form of hours).
<o></o>
Thank you for your help in advance. <o></o>
Elham<o></o>
<o> </o>
<o> </o>