Search Contextures Sites ![]()
Excel Data Entry -- Convert Text to Numbers
Convert Text to Numbers with Paste Special
Convert Dates with Replace All
Convert Text to Numbers with Text to Columns
Convert Trailing Minus Signs
Convert Trailing Minus Signs - Formula
Convert Trailing Minus Signs Programmatically
Paste as CSV
Convert Text to Numbers with VBA
If you copy data from another program, such as Microsoft Access, or from a text file, Excel may treat the numbers as text.* Calculations that use these numbers will be incorrect, as in the SUM shown above.There are several methods that you can use to convert the text "numbers" to real numbers.
Convert Text to Numbers with Paste Special
- Select a blank cell
- Choose Edit>Copy
- Select the cells that contain the numbers
- Choose Edit>Paste Special
- Select Add
- Click OK
- To apply number formatting, choose Format>Cells
- On the Number tab, select the appropriate format, then click OK.
Watch the Video
View the steps described above, in a short Paste Special video.
Convert Text to Numbers with Text to Columns
Convert Trailing Minus Signs - Formula
Thanks to Bob Ryan, from Simply Learning Excel, who sent this formula to fix imported numbers with trailing minus signs.
- In this example, the first number with a trailing minus sign is in cell A1
- Select cell B1, and enter this formula:
- =IF(RIGHT(A1,1)="-",-VALUE(LEFT(A1,LEN(A1)-1)),VALUE(A1))
- Copy the formula down to the last row of data.
In the formula, the RIGHT function returns the last character in cell A1.
If that character is a minus sign, the VALUE function returns the number value to the left of the trailing minus sign.
The minus sign before the VALUE function changes the value to a negative amount.
*For Excel 2002, the problem with Access data has been fixed in Office XP Service Pack 3.
There is information in the following MSKB article:Numbers that are copied from Access 2002 paste as text in Excel 2002
http://support.microsoft.com/default.aspx?id=328933![]()
1. Data Entry -- Tips
2. Data Entry -- Fill Blank Cells
3. Data Entry -- Convert Text to Numbers
4. Data Entry -- Increase Numbers With Paste SpecialNumber keypad
with Excel shortcuts:
Contextures Inc., Copyright ©2012
All rights reserved.
Last updated: October 29, 2011 3:24 PM