The information in this article applies to:
SYMPTOMS
When you import a file that was created in another program (such as dBASE
or Lotus 1-2-3) or that was downloaded from a mainframe, Microsoft Excel
may recognize some numbers as text.
WORKAROUND
To convert text to numbers in a worksheet, use any of the following
methods.
Method 1: Retyping the Values in the CellsOn the Format menu, click Cells, and click the Number tab to change the number format of the cells. Then, retype the numbers.Method 2: Select Edit Directly In CellTo use this method, follow these steps:
Method 3: Using Paste Special with MultiplyTo use this method, follow these steps:
Method 4: Removing Hidden Characters and SpacesThis method works best if the data is arranged in a single column or row. This technique uses the TRIM function and the CLEAN function to remove extra spaces and nonprinting characters that may be imported with the file. The following example assumes that the data is in column A and starts in row 1 ($A$1). To use this example, follow these steps:
Method 5: Using a Visual Basic for Applications ProcedureMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals 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 needs. If you have limited programming experience, you may want to contact a Microsoft Certified Solution Provider or the Microsoft fee-based consulting line at (800) 936-5200. For more information about Microsoft Certified Solution Providers, please see the following page on the World Wide Web:http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspCreate a Visual Basic for Applications macro to reenter the numbers in the selected cell or range of cells. To do this, follow these steps:
Method 6: Using Text to ColumnsThis method works best if the data is arranged in a single column. The following example assumes that the data is in column A and starts in row 1 ($A$1). To use this example, follow these steps:
REFERENCESFor more information about cell formatting, click Microsoft Excel Help on the
Help menu, type Format cells quickly in the Office Assistant or
the Answer Wizard, and then click Search to view the topic. Additional query words: XL2000
Keywords : xlformat |
Last Reviewed: August 31, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |