Excel: Numbers Don't Expand into Adjacent Cells

Last reviewed: November 2, 1994
Article ID: Q26273

SUMMARY

If a decimal number is too long to fit within a column in Microsoft Excel, the decimal portion will round to the number of digits that will fit within the column. If the integer portion of a number will not fit within the column, number signs (#) will appear in the cell.

To format a number so that it will expand into an adjacent cell if the number is too long to fit within the column, the number must be converted to a text string. Text strings will automatically expand into adjacent cells if those adjacent cells do not contain any data.

The formula "=TEXT(value,format_text)" can be used to convert a number into a text string, where "value" is a number or formula and "format_text" is a number format embedded in quotation marks.

For example, to format the result of the formula =SUM(B1:B10) as a text string in the format "$#,##0.00 ;($#,##0.00)", use the following formula:

   =TEXT(SUM(B1:B10),"$#,##0.00 ;($#,##0.00)")


KBCategory: kbother
KBSubcategory:

Additional reference words: 1.00 1.03 1.04 1.06 1.50 2.20 3.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 2, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.