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.

times and Calculations

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
professor_ed - 25 Sep 2007 00:14 GMT
Hello!
I want to calculate # of hours worked in this example:

C1     10:00 am        
D1      3:00 pm
I want to display the duration of 5 hours.

TKU
Peo Sjoblom - 25 Sep 2007 00:30 GMT
=D1-C1

Signature

Regards,

Peo Sjoblom

> Hello!
> I want to calculate # of hours worked in this example:
[quoted text clipped - 4 lines]
>
> TKU
professor_ed - 25 Sep 2007 01:50 GMT
Thank you for the speedy response! The result of the calculation was 5:00PM.
I need the result to be 5. I tried changing the values of thr receiving
cells, but could not get the result to show 5. Cells C1 & D1 are defines as
hh mm ampm

> =D1-C1
>
[quoted text clipped - 6 lines]
> >
> > TKU
Peo Sjoblom - 25 Sep 2007 05:06 GMT
if you want it to be 5 decimal format you need to multiply the result with
24 and format the cell as general or number (not time), if you want 05:00 as
a result you need to format the result as hh:mm

=(D1-C1)*24

formatted as general will return 5
Signature


Regards,

Peo Sjoblom

> Thank you for the speedy response! The result of the calculation was
> 5:00PM.
[quoted text clipped - 13 lines]
>> >
>> > TKU
David Biddulph - 25 Sep 2007 17:53 GMT
But if you say it says 5:00PM, then I would expect it to convert to 17, not
5.
If your original inputs were 10:00 am and 3:00 pm, then if you have the
result cell formatted as h:mm AM/PM, the formula =D1-C1 ought to display as
5:00 AM (not PM), but to get it to show 5:00, you can change the format to
[h]:mm.   To convert to decimal hours, use Peo's formula.
Signature

David Biddulph

> if you want it to be 5 decimal format you need to multiply the result with
> 24 and format the cell as general or number (not time), if you want 05:00
[quoted text clipped - 8 lines]
>> as
>> hh mm ampm

>>> =D1-C1

>>> > Hello!
>>> > I want to calculate # of hours worked in this example:
>>> >
>>> > C1     10:00 am
>>> > D1      3:00 pm
>>> > I want to display the duration of 5 hours.
Peo Sjoblom - 25 Sep 2007 17:57 GMT
Thanks for the heads up

Signature

Regards,

Peo Sjoblom

> But if you say it says 5:00PM, then I would expect it to convert to 17,
> not 5.
[quoted text clipped - 23 lines]
>>>> > D1      3:00 pm
>>>> > I want to display the duration of 5 hours.
 
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.