Currency Format Causes Alignment Problems in Excel

Last reviewed: November 3, 1994
Article ID: Q68416
The information in this article applies to:
  • Microsoft Excel for Windows, versions 3.0, 4.0, 4.0a, 5.0

SUMMARY

When you use the currency format, formatted numbers may not align flush right.

All currency formats, for example, $#,##0_);($#,##0), have a space between the first 0 and the semicolon as a default setting. This space is created by an underscore and any character (in this example a closing parenthesis) after the final zero in the first number in the format.

The additional space keeps negative and positive numbers aligned correctly when negative numbers are enclosed in parenthesis.

For example:

   Default format (with space)   $495.00
                                ($495.00)

   Revised format (without space)   $495.00
                                  ($495.00)

MORE INFORMATION

To change the currency format setting so that the formatted cell is flush right, do the following:

  1. Select the "misaligned" cell.

  2. From the Format menu, choose Cells, and select the Number tab. (In Microsoft Excel 4.0, choose Number from the Format menu.)

  3. In the Code box at the bottom of the dialog box, click between the last zero and the underscore before the closing parenthesis in the first part of the number, and delete both the underscore and the closing parenthesis.

For example, change this number format

   #,##0.00_);(#,##0.00)

to this:

   #,##0.00;(#,##0.00)

REFERENCES

"User's Guide," version 5.0, pages 210-214 "User's Guide 1," version 4.0, pages 106-110 "Microsoft Excel User's Guide," version 3, pages 90-96


KBCategory: kbusage
KBSubcategory:

Additional reference words: 3.0 3.00 4.0 4.00 4.00a 5.00


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: November 3, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.