Solved

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

Posted on 2013-01-31
8
335 Views
Last Modified: 2013-02-07
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
Comment
Question by:bobbat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 
LVL 26

Accepted Solution

by:
redmondb earned 500 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

by:redmondb
ID: 38842239
Thanks, bobbat.
0
 
LVL 49

Expert Comment

by:PortletPaul
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:bobbat
ID: 38844463
Thanks Paul, that work too!
0
 
LVL 26

Expert Comment

by:redmondb
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

by:PortletPaul
ID: 38845912
good point Redmond

how about this?

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

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

Expert Comment

by:redmondb
ID: 38845938
Best of all worlds, PortletPaul!
0
 

Author Comment

by:bobbat
ID: 38845952
Thanks guys!
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

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

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question