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 / January 2008

Tip: Looking for answers? Try searching our database.

Start Time and End time it maybe for 1 day or it maybe for 2 days

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
The_Sleeper - 03 Jan 2008 07:49 GMT
Here is my sheet. I go out Jan 1 @21:00 and get back Jan 2 @09:00 then
the next day out @09:00 and back in @21:00. Is there a way to write a
formula that will  do nothing if C2 is empty then go to the next Day
( C3 ) and  count the hours for D3? at the same time if i was to go
out and back in like cell B4 on the same day. So i need to have a
formula to work for both in one cell and have it choose which one to
use. Not sure how i would put it. Should i use IF, OR, AND.
this one has me thinking. Who knows it just might be simple. Any
ideas????

    A                B           C               D
1  Date    Time out    Time In    Hours
2  Jan-01    21:00
3  Jan-02        9:00          12:00
4  Jan-03    9:00    21:00    12:00
5  Jan-04    12:00
6  Jan-05        10:00    22:00

Thank you
Leo L'Hirondelle
Bob Phillips - 03 Jan 2008 08:56 GMT
=IF(ROW()=2,"",IF(AND(ISNUMBER(B2),ISNUMBER(C2)),MOD(C2-B2,1),MOD(B2-B1,1)))

Signature

HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

> Here is my sheet. I go out Jan 1 @21:00 and get back Jan 2 @09:00 then
> the next day out @09:00 and back in @21:00. Is there a way to write a
[quoted text clipped - 16 lines]
> Thank you
> Leo L'Hirondelle
 
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.