View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.charting
Jon Peltier Jon Peltier is offline
external usenet poster
 
Posts: 6,582
Default Converting Time to Hours & Minutes

Format the inputs as times (this is as simple as entering a number, a space,
and am or pm), then use a little math. This formula calculates the elapsed
time:

=B3-A3+D3-C3

assuming the entered values are in A3 to D3. E3 will also have a format of
0:00 AM/PM. Select the cell, go to Format menu Cells, and on the number
tab, choose a time format without am/pm.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"pugsly8422" wrote in message
...
I have time sheets that people fill out and and calculate by hand. I would
like to insert a formula that will calculate the hours and minutes worked.
An example would be:

Time In Time Out Time In Time Out # Hours
8am 11am 12pm 5:30pm 8.5


It would be even better if I could get "8 Hours and 30 Minutes" instead of
just "8.5." I'm thinking the only way to do this would be to use army
time
because the am or pm will just get in the way of the calculation, but if
it
is possible to leave that would be great as well.

Thanks in advance for any assistance! Let me know if there is any
additional information needed.