The information in this article applies to:
SUMMARYIn Microsoft Excel, when you create a custom number format that contains an even number of underscore characters after the digit placeholders followed by another character such as a closing parenthesis, the character will appear in the formatted number. CAUSE
In Microsoft Excel versions 3.0 and later, one of the special
formatting characters used in a custom number format is the underscore
character "_" (without the quotation marks). This character acts as a
placeholder, leaving a space in the number format that is the width of
the character that follows. For example, a custom number format of
"#,##0_)" will leave a space that is exactly the width of the
parentheses at the end of the number. This formatting is useful when
displaying negative numbers in parentheses and also desiring the
digits to align with positive numbers in the same column.
WORKAROUNDTo prevent the ")" from appearing in the format and add extra spaces, use an odd number of underscore characters. STATUSThis behavior is by design. MORE INFORMATIONThe amount of space left by the underscore character is dependent upon the font being used. If the font is proportional such as Microsoft SanSerif or Helvetica, the characters "W" and ")" will leave different size spaces. If the font is non-proportional, such as Courier, the two characters will leave the same size spaces. REFERENCES
"Microsoft Excel User's Guide 1," version 4.0, page 226
Additional query words: underscore underline
Keywords : |
Last Reviewed: March 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |