google spreadsheet - How to convert datetime interval to hours? -
i have spreadsheet:
b c d e 1 08/13/2013 02:10 4 2 08/13/2013 02:19 10 00:09:00 160
in d2, have formula : =if(b2="";"";to_date(concatenate(a2;" ";b2))-to_date(concatenate(a1;" ";b1)))
in e2 have formula : =if(d2="";"";(c2-c1)/d2)
but e2 outputs wrong result, 160. want 40 (=10-4/0.15). 0.15
value in d2 converted hours.
how can that?
do not quite understand you're trying calculate, information explains, following formula can help:
=if(d2 = "", "", round((c2-c1)/(d2*24), 0))
Comments
Post a Comment