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

Tip: Looking for answers? Try searching our database.

Help needed with Capturing time worked

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John Smith - 13 Nov 2006 02:24 GMT
Thanks to many helpful directions from this group I am using the formula

=IF(D9>C9,MAX(0,MIN(D9,"15:00")-MAX(C9,"7:00")),MAX(0,"15:00"-MAX(C9,"7:00"))+MAX(0,MIN(D9,"15:00")-"7:00"))
to capture the hours during a person's regular shift (7:00-15:00) that
may have been worked on a day off.
Column C is for entering the start time.
Column D is for entering the end time.
I manipulated the above formula to attempt to capture the hours outside
the regular shift and arrived at
=IF(D9>=C9,MAX(0,MIN(D9,"24:00")-MAX(C9,"0:00")-MAX(0,"15:00"-MAX(C9,"7:00"))),MAX(0,MIN(D9,"15:00")-MAX(C9,"7:00"))).
To my amazement, it actually works but only for certain hours like
(07:00-17:00).
What do I need to do to make it work on all such hours outside (either
before or after, or both) 7:00 - 15:00?
John
Bob Phillips - 13 Nov 2006 09:06 GMT
Assuming the first formula is in E9,

=MOD(D9-C9,1)-E9

Signature

HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

> Thanks to many helpful directions from this group I am using the formula

=IF(D9>C9,MAX(0,MIN(D9,"15:00")-MAX(C9,"7:00")),MAX(0,"15:00"-MAX(C9,"7:00")
)+MAX(0,MIN(D9,"15:00")-"7:00"))
> to capture the hours during a person's regular shift (7:00-15:00) that
> may have been worked on a day off.
> Column C is for entering the start time.
> Column D is for entering the end time.
> I manipulated the above formula to attempt to capture the hours outside
> the regular shift and arrived at

=IF(D9>=C9,MAX(0,MIN(D9,"24:00")-MAX(C9,"0:00")-MAX(0,"15:00"-MAX(C9,"7:00")
)),MAX(0,MIN(D9,"15:00")-MAX(C9,"7:00"))).
> To my amazement, it actually works but only for certain hours like
> (07:00-17:00).
> What do I need to do to make it work on all such hours outside (either
> before or after, or both) 7:00 - 15:00?
> John

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.