ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Negative Time Numbers (https://www.excelbanter.com/excel-discussion-misc-queries/195372-negative-time-numbers.html)

JT

Negative Time Numbers
 
Is there a way to display negative time numbers? i.e. 64:00 - 84:00 hours
= -20:00 hours

John C[_2_]

Negative Time Numbers
 
Assume times are entered in A1 (first time) and B1 (second time).
C1: =IF(B1A1,"- ","+ ")&TEXT(ABS(A1-B1),"[hh]:mm")

That being said, since it is now a text cell, in order to manipulate this
time, you would need something like the following.
Assume cell B3 has time that needs to be modified by your time in C1.
C3: =B3+MID(C1,3,LEN(C1)-2)*IF(LEFT(C1,1)="-",-1,1)

It works....

--
John C


"JT" wrote:

Is there a way to display negative time numbers? i.e. 64:00 - 84:00 hours
= -20:00 hours


Stefi

Negative Time Numbers
 
Try to check 1904 style dates in ToolsOptionsCalculation!

Regards,
Stefi

€žJT€ ezt Ă*rta:

Is there a way to display negative time numbers? i.e. 64:00 - 84:00 hours
= -20:00 hours


Fred Smith[_4_]

Negative Time Numbers
 
See answer in your other thread.

Regards,
Fred.

"JT" wrote in message
...
Is there a way to display negative time numbers? i.e. 64:00 - 84:00
hours
= -20:00 hours




All times are GMT +1. The time now is 02:29 AM.

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