Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2007

Tip: Looking for answers? Try searching our database.

Adding and Subtracting Time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TrentA - 29 Sep 2007 17:01 GMT
I G22 and H22 I have the following:

8:00 am  9:05 am

In cell I 22 I have the following formulal:

=IF(H22="","",(H22-G22)*24)

This gives me an answer off  1.08

I logged in a total of 1 hour and five minutes, so I don't understand
the 1.08

Am I doing things right?  Is there a way to show hours and minutes?

Thanks
Sandy Mann - 29 Sep 2007 17:11 GMT
By multiplying by 24 you are converting the time into a number ie 1 hour and
8/100th of an hour (8/100*60=4.8)

Leave the time as it is and format the cell as time:

=IF(H22="","",(H22-G22))

Signature

HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

sandymann2@mailinator.com
Replace @mailinator.com with @tiscali.co.uk

>I G22 and H22 I have the following:
>
[quoted text clipped - 12 lines]
>
> Thanks
TrentA - 30 Sep 2007 00:26 GMT
Thanks to all, works fine now.

>By multiplying by 24 you are converting the time into a number ie 1 hour and
>8/100th of an hour (8/100*60=4.8)
>
>Leave the time as it is and format the cell as time:
>
>=IF(H22="","",(H22-G22))
*alan* - 29 Sep 2007 17:32 GMT
>I G22 and H22 I have the following:
>
[quoted text clipped - 12 lines]
>
> Thanks

If you don't want decimal representation of your time, try this:

First of all, in I22 all you really need to enter is simply

=H22-G22

Secondly, custom format I22 as [h]:mm

--
alan

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.