Solved

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

Posted on 2013-01-31
8
338 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

622 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