ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to add a time (https://www.excelbanter.com/excel-discussion-misc-queries/63607-how-add-time.html)

JohnC

how to add a time
 
7:00 AM 5:00 PM should = 10 hrs

However if i use the forumla posted by Oscar
=SUM(I19-H19*24)

I would get -6.291666667

Yikes






Jonathan Cooper

how to add a time
 
Assuming your calculation will always be within the same calendar day, try
this:

=HOUR(H19)-HOUR(I19)

"JohnC" wrote:

7:00 AM 5:00 PM should = 10 hrs

However if i use the forumla posted by Oscar
=SUM(I19-H19*24)

I would get -6.291666667

Yikes






Bob Phillips

how to add a time
 
It should be

=(I19-H19)*24


--

HTH

RP
(remove nothere from the email address if mailing direct)


"JohnC" wrote in message
...
7:00 AM 5:00 PM should = 10 hrs

However if i use the forumla posted by Oscar
=SUM(I19-H19*24)

I would get -6.291666667

Yikes









All times are GMT +1. The time now is 07:21 AM.

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