ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   calculate hours (https://www.excelbanter.com/excel-worksheet-functions/257669-calculate-hours.html)

gma

calculate hours
 
how do you calculate hours i.e.
3:45am-11:15am = ______hrs?

Glenn

calculate hours
 
gma wrote:
how do you calculate hours i.e.
3:45am-11:15am = ______hrs?



Look he

http://www.cpearson.com/excel/datearith.htm

JLatham

calculate hours
 
Assuming earlier time in A14 (3:45 am) and later time in B14 (11:15 am), then
in another cell = B14-A14
and now the trick: in that cell use Format -- Cells and go down to custom
and use [h]:mm:ss to give you the result in hours minutes and seconds rather
than as a time of day.


"gma" wrote:

how do you calculate hours i.e.
3:45am-11:15am = ______hrs?


Fred Smith[_4_]

calculate hours
 
The answer is negative 8 hours. But Excel cannot display negative times. If
this is what you actually want to do, post back, and we'll give you some
options.

If you really meant 11:15 - 3:15, it's simple subtraction:
=a2-a1
Format as a time.

Regards,
Fred

"gma" wrote in message
...
how do you calculate hours i.e.
3:45am-11:15am = ______hrs?



David Biddulph[_2_]

calculate hours
 
=(A2-A1)*24 and format as General or Number, if you want the answer in
decimal hours.
--
David Biddulph


"gma" wrote in message
...
how do you calculate hours i.e.
3:45am-11:15am = ______hrs?





All times are GMT +1. The time now is 03:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com