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 / Worksheet Functions / November 2005

Tip: Looking for answers? Try searching our database.

Adding hrs

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
demetri - 18 Nov 2005 22:51 GMT
How do you make a formula that sais that an employee started work at 4am and
finished at 1030 am i need the answer to 6.5 hrs.  The problem would read say
in cell a1    "0400" in cell a2  (1030) and then I want cell 3 to display the
amount of hrs as 6.5 not 6.3?
Sloth - 18 Nov 2005 23:02 GMT
You should enter it as time and change the formats.

Input
A1: 4:00 AM
A2: 10:30 AM
A3: 24*(A2-A1)

Format A1 and A2 as
hhmm
and format A3 as General or as a number

Result:
A1: 0400
A2: 1030
A3: 6.5

> How do you make a formula that sais that an employee started work at 4am and
> finished at 1030 am i need the answer to 6.5 hrs.  The problem would read say
> in cell a1    "0400" in cell a2  (1030) and then I want cell 3 to display the
> amount of hrs as 6.5 not 6.3?
demetri - 18 Nov 2005 23:10 GMT
> You should enter it as time and change the formats.
>
[quoted text clipped - 16 lines]
> > in cell a1    "0400" in cell a2  (1030) and then I want cell 3 to display the
> > amount of hrs as 6.5 not 6.3?

Thank you!
Bob Phillips - 18 Nov 2005 23:25 GMT
Try

=INT(A2/100)+MOD(A2,100)/60-INT(A1/100)+MOD(A1,100)/60

and format as general

Signature

HTH

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

> How do you make a formula that sais that an employee started work at 4am and
> finished at 1030 am i need the answer to 6.5 hrs.  The problem would read say
> in cell a1    "0400" in cell a2  (1030) and then I want cell 3 to display the
> amount of hrs as 6.5 not 6.3?
 
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



©2009 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.