subtracting time going backwards past midnight?

B

Billman

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

T. Valko

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
 
T

Tyro

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top