#1   Report Post  
 
Posts: n/a
Default Subtracting times

Hi all,

What formula can I use to subtract 2 times so that I get the number of
minutes the one time is either ahead or behind the other. For example,
if the deadline time is 08:00 and the actual time is 8:30, I want a
result of -30 or even better, -00:30. It works fine the other way,
where the actual time is before the deadline time.

Many thanks.

Rob

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Rob,

If it is okay to have the result as a text string, that is you don't want to
use it for math, then you can use

=IF(A1<B1,"-","")&TEXT(ABS(A1-B1),"hh:mm")

--

HTH

RP
(remove nothere from the email address if mailing direct)


wrote in message
oups.com...
Hi all,

What formula can I use to subtract 2 times so that I get the number of
minutes the one time is either ahead or behind the other. For example,
if the deadline time is 08:00 and the actual time is 8:30, I want a
result of -30 or even better, -00:30. It works fine the other way,
where the actual time is before the deadline time.

Many thanks.

Rob



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i add times in Excel? Excel>Me [email protected]> Excel Discussion (Misc queries) 5 January 8th 05 05:21 PM
Countif("between start/end times) Ian Jones Excel Discussion (Misc queries) 0 January 6th 05 06:17 PM
Adding/Averaging Times in Excel JD Excel Discussion (Misc queries) 2 January 5th 05 05:07 PM
Whats the function to count the total times a word is displayed Monk Excel Discussion (Misc queries) 3 December 10th 04 10:39 PM
Need help with conditional rates and roster times for payroll Ricky Excel Discussion (Misc queries) 1 December 9th 04 04:23 PM


All times are GMT +1. The time now is 06:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"