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

Tip: Looking for answers? Try searching our database.

subtracting time going backwards past midnight?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Billman - 09 Mar 2008 05:25 GMT
I am trying to track time going backwards. In other words I am backing into a
start time.  I am having problems when I cross midnight going backwards.
T. Valko - 09 Mar 2008 05:40 GMT
Try this:

A1 = 7:00 PM
B1 = 3:00 AM

=MOD(B1-A1,1)

Format as h:mm = 8:00

Or, if you want the result in decimal format:

=MOD(B1-A1,1)*24

Format as GENERAL or NUMBER = 8

Signature

Biff
Microsoft Excel MVP

>I am trying to track time going backwards. In other words I am backing into
>a
> start time.  I am having problems when I cross midnight going backwards.
Tyro - 09 Mar 2008 05:51 GMT
You will have a problem there. Excel maintains times as fractions of 24
hours. To keep accurate time, you must also take date into account.
as Excel maintains time and dates as date.time That is to say, the date is
maintained as a whole number and the time as a fraction.

Tyro
>I am trying to track time going backwards. In other words I am backing into
>a
> start time.  I am having problems when I cross midnight going backwards.
Teethless mama - 09 Mar 2008 14:21 GMT
=B1-A1+(A1>B1)

Fomat cell as  h:mm

> I am trying to track time going backwards. In other words I am backing into a
> start time.  I am having problems when I cross midnight going backwards.
 
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.