Solved

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

Posted on 2013-01-31
8
280 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
  • 4
  • 2
  • 2
8 Comments
 
LVL 26

Accepted Solution

by:
redmondb earned 500 total points
Comment Utility
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
Comment Utility
Thanks, bobbat.
0
 
LVL 48

Expert Comment

by:PortletPaul
Comment Utility
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

by:bobbat
Comment Utility
Thanks Paul, that work too!
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 26

Expert Comment

by:redmondb
Comment Utility
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 48

Expert Comment

by:PortletPaul
Comment Utility
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
Comment Utility
Best of all worlds, PortletPaul!
0
 

Author Comment

by:bobbat
Comment Utility
Thanks guys!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

771 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now