LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Negative time displaying as #####

Hi,

I currently have two times (formatted as general). Eg. 0525 (cell A2) and
0105 (cell B2). I have calculated the difference between the two times using
the following formula:
=TIME(LEFT(B2,2),RIGHT(B2,2),0) -TIME(LEFT(A2,2),RIGHT(A2,2),0) + (B2<A2)

The problem comes when I try to override either cell B2 or cell A2. The
output cell then gives me #### when the number is negative, or the wrong
result when it is positive. Even if I change the formatting of A2 and B2 to
custom (h:mm AM/PM), I get the same result (####) though I have also changed
the formula to a simple subtraction of B2-A2.

Does anyone have any suggestions - do I change the time format used, or the
subtraction formula?

Thanks in advance
--
Carla
 
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
Displaying negative time Babs Excel Discussion (Misc queries) 8 March 2nd 09 08:18 PM
Displaying negative [h]:mm:ss The Rook[_2_] Excel Discussion (Misc queries) 2 February 10th 09 12:32 PM
Displaying negative hh:mm:ss The Rook[_2_] Excel Discussion (Misc queries) 1 February 10th 09 10:43 AM
Displaying negative time in excel Six Sigma Blackbelt Excel Worksheet Functions 5 November 10th 06 10:42 PM
More problems displaying a negative time SheriffCassidy Excel Discussion (Misc queries) 1 June 3rd 05 02:15 AM


All times are GMT +1. The time now is 04:20 AM.

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

About Us

"It's about Microsoft Excel"