Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 159
  • Last Modified:

Subtracting two time columns to create hours

Using Excel 2007 I need to subtract two columns, each containing the time (military). I need the result to be hours (as a double).

What are the formulas and formatting I need to use?

Thanks.
0
newbieweb
Asked:
newbieweb
1 Solution
 
redbmasterCommented:
Ok, the formula to convert a time to an integer is (A1-INT(A1))*24. So the forumula should look something like =SUM(((A2-INT(A2))*24)-((A1-INT(A1))*24)).

To format a cell, just right click it and select "Format Cell".
0
 
newbiewebAuthor Commented:
Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now