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

Tip: Looking for answers? Try searching our database.

How do I subtract time?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Fletch74 - 19 Aug 2006 17:59 GMT
I read that you can do (B1-A1)*24 but for the values where A is in PM and B
is in AM this returns a negative hour much larger than what it should be.  
Any recommendations?  Thanks.
Domenic - 19 Aug 2006 18:25 GMT
Try...

=(B1-A1+(B1<A1))*24

Hope this helps!

> I read that you can do (B1-A1)*24 but for the values where A is in PM and B
> is in AM this returns a negative hour much larger than what it should be.  
> Any recommendations?  Thanks.
Toppers - 19 Aug 2006 18:33 GMT
Try:

=MOD((B1-A1),1)*24

> Try...
>
[quoted text clipped - 5 lines]
> > is in AM this returns a negative hour much larger than what it should be.  
> > Any recommendations?  Thanks.
Fletch74 - 19 Aug 2006 18:40 GMT
Thanks, both work.  =D

> Try:
>
[quoted text clipped - 9 lines]
> > > is in AM this returns a negative hour much larger than what it should be.  
> > > Any recommendations?  Thanks.
 
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.