ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Using Excel but can't get hh:mm to go negative when subtracted (https://www.excelbanter.com/excel-discussion-misc-queries/18894-using-excel-but-cant-get-hh-mm-go-negative-when-subtracted.html)

bobuk33

Using Excel but can't get hh:mm to go negative when subtracted
 
Trying to monitor hours worked vs hours planned eg planned 37 hours, worked
36 hours therefore want -1 hour ..... Help driving me mad

Bob Phillips

You won't get it.

You can get 1 by using

ABS(time_1-time_2)

and test if time_2 is greater than time_1 to prefix with a -, but this then
becomes text

=IF(time_2time_1,"-","")&ABS(time_1-time_2)

--

HTH

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


"bobuk33" wrote in message
...
Trying to monitor hours worked vs hours planned eg planned 37 hours,

worked
36 hours therefore want -1 hour ..... Help driving me mad





All times are GMT +1. The time now is 09:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com