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.

Help with time please.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Floyd Forbes - 19 Oct 2006 01:57 GMT
I have this formula that caluclates
time"=IF(K27-E25+F25-L27<=0,0,K27-E25+F25-L27)".
in cell G25. It works fine if E25 is 11:00 PM and F25 is 11:30 PM. If I try
to calculate E25 is 11:55 PM and F25 is 12:05 AM it gives me 0:00. What is
wrong?

Floyd
Pete_UK - 19 Oct 2006 02:06 GMT
This also depends on your values of K27 and L27 (I suspect these are
dates), but think of 12:05AM as being 0:05 - it is less than 23:55
(11:55PM), and as you are subtracting one from the other the result is
less than 0, so your formula returns 0.

Hope this helps.

Pete

> I have this formula that caluclates
> time"=IF(K27-E25+F25-L27<=0,0,K27-E25+F25-L27)".
[quoted text clipped - 3 lines]
>
> Floyd
Floyd Forbes - 19 Oct 2006 02:24 GMT
How do I get my formula to work? The answer should be 0:10.

> This also depends on your values of K27 and L27 (I suspect these are
> dates), but think of 12:05AM as being 0:05 - it is less than 23:55
[quoted text clipped - 14 lines]
>>
>> Floyd
Ragdyer - 19 Oct 2006 04:13 GMT
You haven't mentioned what the other cells in your formula are supposed to
be doing, so, are we supposed to *guess* at what's in them?

Just going from the information you gave us:
E25 is 11:55 PM
F25 is 12:05 AM
And you want a return of 10 minutes,
This will work in a cell formatted to h:mm,

=MOD(F25-E25,1)

If this doesn't help, post more info.
Signature

Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

> How do I get my formula to work? The answer should be 0:10.
>
[quoted text clipped - 16 lines]
> >>
> >> Floyd
ilia - 19 Oct 2006 18:04 GMT
I have an application that calculates times for a timesheet.  Some
shifts are overnight, thus you run into a similar problem.  Although it
may be somewhat inefficient, here is my approach.

Column B always containts time in
Column C always contains time out
Desired value in the same row for Column E should be a fractional value
of hours.

For simplicity, I create two hidden columns to the right of the
timesheet, labeled Hour In and Hour Out.  The formulas, respectively,
are:
=HOUR($B143)+MINUTE($B143)/60
=HOUR($C143)+MINUTE($C143)/60

Then, the hour calculation (Column E) has the following formula:
=IF(M143>0,IF(M143>=N143,N143+24-M143,N143-M143),N143)

Where Column M and Column N are Hour In and Hour Out, respectively.

Hope that's helpful.

-Ilia

> You haven't mentioned what the other cells in your formula are supposed to
> be doing, so, are we supposed to *guess* at what's in them?
[quoted text clipped - 37 lines]
> > >>
> > >> Floyd
 
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.