[Webinar] Streamline your web hosting managementRegister Today

x
Solved

# In MS Excel, how do I convert time from hh:mm to hh.hh?

Posted on 2013-01-31
Medium Priority
365 Views
In MS Excel, how do I convert time from hh:mm to hh.hh?  For example, 4 hours and forty-five minutes = 4:45.  In decimal hours form it is four and three-quarters hours or 4.75.  Thus what is the equation to convert 4:45 (hh:mm) to 4.75 Hours (hh.hh)?
0
Question by:bobbat
• 4
• 2
• 2

LVL 26

Accepted Solution

redmondb earned 2000 total points
ID: 38842006
Hi, bobbat.

Just multiply the time by 24 and set the cell's format to Number with 2 places of decimal.

(Excel stores 24 hours as 1, 12 hours as .5 etc.)

Regards,
Brian.
0

LVL 26

Expert Comment

ID: 38842239
Thanks, bobbat.
0

LVL 49

Expert Comment

ID: 38842416
assuming a date/time value in cell A1

e.g. 2013/02/01 4:45

this formula would provide the answer 4.75

=HOUR(A1)+(MINUTE(A1)/60)
0

Author Comment

ID: 38844463
Thanks Paul, that work too!
0

LVL 26

Expert Comment

ID: 38844902
Careful, for "04:44:59", it displays 4.73 whereas mine is the more accurate 4.75. (Using two places of decimals.)

On the other hand, mine assumes that the input is a Time, whereas PortletPaul's will handle Date as well.
0

LVL 49

Expert Comment

ID: 38845912
good point Redmond

=TIME(HOUR(A1),MINUTE(A1),SECOND(A1))*24

works for time and date/time
format to desired decimal precision
0

LVL 26

Expert Comment

ID: 38845938
Best of all worlds, PortletPaul!
0

Author Comment

ID: 38845952
Thanks guys!
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micrâ€¦
###### Suggested Courses
Course of the Month9 days, 19 hours left to enroll