Article ID: 191007 - View products that this article applies to.
This article was previously published under Q191007
This article has been archived. It is offered "as is" and will no longer be updated.
If a number is formatted with the Text number format, and you attempt to change the format to something other than Text, the number may not be changed as you expect.
When you format a cell using the Text number format, the cell is changed and anything that is entered is displayed as text.
To work around this behavior, use any of the following methods to reenter the numbers in the reformatted cells.
Method 1: Retype the NumbersAfter you change the format, retype the numbers, or click in the formula bar and then press RETURN.
Method 2: Select Edit Directly In CellTo use this method, follow these steps:
Method 3: Use a Microsoft Visual Basic for Applications ProcedureMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. Create a Visual Basic for Applications macro to reenter the numbers in the selected cell or range of cells. Type the following code in a module sheet:
Before you run this procedure, switch to the worksheet that contains the numbers you want reentered, select the range of cells that contain those numbers, apply a number format other than Text, and then run the macro.
Method 4: Use Paste SpecialTo use this method, follow these steps:
To format a number as text, follow these steps:
Note If numbers are entered before the cells are formatted to use the Text number format, they remain numbers, but they are aligned to the left in the cell to appear as text.
Excel X and later versionsFor more information about how to format cells as text, click Excel Help on the Help menu, type format existing numbers as text, click Search, and then click a topic to view it.
Excel 2001For more information about formatting cells as text, click the Office Assistant, type format existing numbers as text, click Search, and then click a topic to it.
Note If the Assistant is hidden, click the Office Assistant button on the standard toolbar.
Excel 98For more information about formatting cells as text, click the Office Assistant, type format numbers text, click Search, and then click Format existing numbers as text to view the topic.
Note If the Assistant is hidden, click the Office Assistant button on the standard toolbar. If Microsoft Help is not installed on your computer, click the following article number to view the article in the Microsoft Knowledge Base:
(https://support.microsoft.com/kb/179216/ )OFF98: How to Use the Microsoft Office Installer Program