PC Review


Reply
Thread Tools Rate Thread

Adding and Subtracting Time

 
 
TrentA
Guest
Posts: n/a
 
      29th Sep 2007
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


 
Reply With Quote
 
 
 
 
Sandy Mann
Guest
Posts: n/a
 
      29th Sep 2007
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))


--
HTH

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

(E-Mail Removed)
Replace @mailinator.com with @tiscali.co.uk


"TrentA" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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
>
>
>



 
Reply With Quote
 
*alan*
Guest
Posts: n/a
 
      29th Sep 2007

"TrentA" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>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


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

 
Reply With Quote
 
TrentA
Guest
Posts: n/a
 
      30th Sep 2007
Thanks to all, works fine now.

On Sat, 29 Sep 2007 17:11:56 +0100, "Sandy Mann"
<(E-Mail Removed)> wrote:

>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))


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding and subtracting time Terry Bennett Microsoft Excel Worksheet Functions 2 13th Feb 2007 12:24 PM
Adding/Subtracting Time Help... killertofu Microsoft Excel Worksheet Functions 3 15th Feb 2006 08:49 PM
adding/subtracting time griffee@email.com Microsoft Excel Worksheet Functions 5 11th Jan 2006 02:43 PM
Adding and Subtracting Time =?Utf-8?B?Y3V0dGhyb2F0amVzcw==?= Microsoft Access Queries 2 11th Oct 2004 07:59 PM
Adding Subtracting Time Keht Microsoft Excel Discussion 2 21st Aug 2004 01:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:15 AM.