XL: Negative Date/Time Value Displayed as Pound Signs (###)

Last reviewed: February 2, 1998
Article ID: Q112361
The information in this article applies to:
  • Microsoft Excel for Windows, versions 2.x, 3.x, 4.x, 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 2.x, 3.x, 4.x, 5.0, 5.0a
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel 97 for Windows
  • Microsoft Excel 98 Macintosh Edition

SYMPTOMS

If Microsoft Excel is set to use the 1900 date system, and you add or subtract data that is formatted with a time format, the date may not be displayed as you expect. When the results of the formula produce a negative value, and this data is formatted to display a time value, the cell displays pound signs, as in the following example:

   ########

CAUSE

Although the formula in the cell performs the correct operation, the number format returns the wrong results.

WORKAROUND

To display the number correctly, do either of the following:

  • Change the date system to the 1904 date system.

        -or-
    
  • Use the following to change the displayed result

          =TEXT(ABS(A1-A2),"-h:mm:ss")
    

    where A1 has a value smaller than A2.

The above formula will display the value as text. You may need to format the cell alignment to right justified. Note that this is not an acceptable workaround if you need to use the result in another calculation.

STATUS

This behavior is by design of the versions of Microsoft Excel listed at the beginning of this article.


Additional query words: 2.00 2.01 2.10 2.10c 2.10d 2.20 2.10 3.00
4.00 4.00a 5.00 7.00 8.00 97 98 XL98 XL97 XL7 XL5 XL4 XL3
Keywords : xlformat xlformula
Version : WINDOWS:3.0,4.0,5.0,5.0c,7.0,97; MACINTOSH:2.0,3.0,4.0,5.0,5.0a,98
Platform : MACINTOSH WINDOWS
Issue type : kbprb
Solution Type : kbworkaround


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.