On time arrival

R

Richard

A1: Scheduled arrival time.
B1: Actual arrival time.

In C1, I would like to compute the time difference between scheduled and
actual arrival time. I'm golden as long as the actual arrival is earlier
than the scheduled time. When B1 is later than A1, I just get a result of
#######.

Is there a way for this time to be displayed as a negative? Any other
suggestions for identifying late arrivals? Please no visual basic. I'm a
rookie at this.

Thanks
 
B

Bob Phillips

One way

=IF(B1>A1,B1-A1,TEXT(MOD(B1-A1,1),"-hh:mm"))

--
HTH

Bob

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

David Biddulph

But that would show -21:00 where the result of the calculation is -3:00.

Might I suggest changing Bob's formula to
=IF(B1>A1,B1-A1,TEXT(A1-B1,"-hh:mm"))
 

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

Similar Threads


Top