Link to home
Start Free TrialLog in
Avatar of Maliki Hassani
Maliki HassaniFlag for United States of America

asked on

EXCEL: FORMULA FOR TIME CALCULATION HH.MM

Experts,

Does anyone know of a way to sum up the duration of two time periods.  I would like to show, hh.mm.

Here is the data:
EVENTSTARTTIME      EVENTENDTIME
Oct 03, 2011 10:59:00 AM      Oct 03, 2011 11:34:48 AM
Oct 03, 2011 02:30:00 PM      Oct 03, 2011 02:55:00 PM

I was using
=ROUND((E2-D2)*1440,0) with gives me 36 hrs I would like 36.XX
ASKER CERTIFIED SOLUTION
Avatar of Rob Henson
Rob Henson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Maliki Hassani

ASKER

I should have wrote 36:xx
When I format the cell to show hh:mm  I get 864:00
Think this will work
=TEXT(E2-D2,"h:mm:ss")
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Perfect thanks robbenson!
Should have also said, need to include the square brackets around the hh to get hours to keep going when over 24 and not go back to zero as a clock would.

Thanks
Rob H
unless you have a specific reason then using TEXT function is probably not a good idea - just subtract like

=E2-D2

....then format as Rob suggests

regards, barry
Good point!