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 / October 2006

Tip: Looking for answers? Try searching our database.

Calculate hours worked

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
larry_saudi - 22 Apr 2006 17:17 GMT
Greetings!

We are using the 12 hour clock format in our time sheet and were able to
calculate the hours worked, however, we want to display the time 4:00 PM as
4:00 without the PM with the same calculation result.
                  A             B                C           D            E
                 IN           OUT             IN          OUT        HOURS
 Larry     7:00 AM    12:00 PM     1:00 PM    4:00 PM      8.0

We use the formula in column E =(D-C-INT(D-C))*24+(B-A-INT(B-A))*24 and
format it as Number with 1 decimal places.

Using the format hh:mm in column A & B we can display the time with out the
AM/PM as it less than 1:00PM, however beyond 1:00PM
using the same format 1:00PM will become 13:00 which is not the desired time
display(in print & on screen). Typing just 4:00 will neither give a correct
answer. Pls advice. We use Excel 2003 version.

Thanks and regards


Bob Phillips - 22 Apr 2006 17:48 GMT
Don't multiply by 24, and format as hh:mm perhaps

=(D2-C2-INT(D2-C2))+(B2-A2-INT(B2-A2))

Signature

HTH

Bob Phillips

(remove nothere from email address if mailing direct)

> Greetings!
>
[quoted text clipped - 15 lines]
>
> Thanks and regards
larry_saudi - 23 Apr 2006 16:05 GMT
Mr. Bob,

Thanks for the reply. We can now type the time and display as it is without
the AM/PM. However, using the formula we still have this problem as shown
below:
                   A            B           C            D              E
                  IN         OUT         IN         OUT        HRS WORK
Larry          7:00       12:00      1:00       4:00         8.0
Jimmy        7:30       12:00      1:00       4:00         7:30

For Jimmy the number of hours work should be 7.5 and not 7:30. How to
change/format 7:30 to 7.5 using the same formula. We compute his salary by
the number of hours work.
Thanks and best regards.

Larry

> Don't multiply by 24, and format as hh:mm perhaps
>
[quoted text clipped - 25 lines]
> >
> > Thanks and regards
Bob Phillips - 23 Apr 2006 19:38 GMT
Then use

=((D2-C2-INT(D2-C2))+(B2-A2-INT(B2-A2)))*24

and format as General

Signature

HTH

Bob Phillips

(remove nothere from email address if mailing direct)

> Mr. Bob,
>
[quoted text clipped - 42 lines]
> > >
> > > Thanks and regards
larry_saudi - 24 Apr 2006 16:50 GMT
Mr. Bob,

Solved. It's a great help for us.

Thank you very much.

Larry

> Then use
>
[quoted text clipped - 54 lines]
> > > >
> > > > Thanks and regards
RICK - 11 Oct 2006 19:46 GMT
I type exact formula as you did, but why em I not getting the answer to
colume E, the formula stays rather it should change to 8 hours.  Can you
please send me the formula for this IN 6:00AM  LUNCH 12:00  IN 12:30 OUT 5:30.

> Greetings!
>
[quoted text clipped - 17 lines]
>
>  

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.