Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to change or convert text to number in Excel?

When you import data from some source, such as Access or text files, numbers may be formatted as text in cells occasionally. Calculations and sorting will go wrong if numbers are formatted or stored as text. Here are several methods to convert text to numbers in Microsoft Excel.

Convert text to number with Error checking rules in Excel

Convert text to number with Paste Special

Convert text to number with Kutools for Excel


arrow blue right bubble Convert text to number with Error checking rules in Excel


Generally speaking, when the numbers are formatted or stored in cells as text, there will be an error sign doc-text-to-number-7 at upper-left corner of the cell. After selecting the cell, it displays an error button doc-change-text-number-5 before this cell. Click the error button doc-change-text-number-5, and it will display a menu, you can click on Convert to Numbercommand item to convert the text in the cell into number. See screenshot:

doc-convert-text-to-number1

Then the number stored as text has been converted to number. And then repeat this way for other cells.

If there are no error signs doc-text-to-number-7 at upper-left corner of the cells, you can also use the Error Checking command under Formula tab to deal with it. Please do as this:

1. Click Formulas > Error Checking, see screenshot:

doc-convert-text-to-number2

2. Then in the Error Checking dialog box, click Convert to Number button. And repeatedly click this button to convert other text to numbers.

doc-convert-text-to-number3

3. When the last cell text has been changed to number, it will pop up a prompt box to remind you all of the text has been converted to numbers.

doc-convert-text-to-number4

But when there are large blocks of data that need to change, this method will be tedious and time-consuming.


arrow blue right bubble Convert text to number with Paste Special

The second method is to convert numbers stored as text by calculating with Paste Special command in Microsoft Excel.

1. Please enter number 0 in a blank cell and copy it;

2. Select the range cells containing numbers stored as text;

3. Right click the selected range, and choose the Paste Special option from context menu;

4. Then it shows Paste Special dialog box, and check the All option and Add option;

doc-convert-text-to-number5

5. Click OK, and all the numbers stored as text will be converted to number. See screenshots:

doc-convert-text-to-number6 -2 doc-convert-text-to-number7

Notes:

  • If you don’t want to change the cell formatting in the range after converting text to number, please choose to paste as Value in the Paste option.
  • In the Operating options, please select the Add option or Subtract option.
  • Disadvantage of this method: if the range contains blank cells, it will fill all blank cells with number 0.

arrow blue right bubble Convert text to number with Kutools for Excel

If you have installed Kutools for Excel on your computer, its Force Values in Cells tool will help you convert all numbers stored as text into numbers without losing original formats and styles.

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 30 days. Get it Now.

1. Click Kutools > More > Force Values in Cells…. See screenshot:

doc-convert-text-to-number8

2. Then it displays the Force Value in cells dialog box. Just specify the range that contains numbers stored as text, and check the Text to number option.

doc-convert-text-to-number9

3. And then click OK or Apply, all numbers stored as text will be converted into numbers in the selected range.

You can click here to know more about this Force Values in Cells feature.


Related article:

How to change or convert number to text in Excel?


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    hasnain · 1 years ago
    Sir i want to change letter into number in excel 2007
    i am working in shop where prices are mentioned in code
    examle
    ioxzz = prices 34800
    a = 1
    e = 2
    i = 3
    o = 4
    u = 5
    v = 6
    w = 7
    x = 8
    y = 9
    z = 0
    plz send me formula i change these code price into value if any one now
  • To post as a guest, your comment is unpublished.
    HKnight · 4 years ago
    Kathy,
    Your formula worked perfectly.
    This approach is exactly what I needed for my reports.
    THANK YOU!
  • To post as a guest, your comment is unpublished.
    KathyM · 4 years ago
    I run a report weekly that requires copying and pasting approximately 7000 rows of data exported from a system. Recently some changes were made so that the numbers were coming out stored as text. The data includes a selection of actual text entries and the rest numbers stored as text. This data gets copied and pasted into a master template which then feeds other sheets/reports, but I needed the numbers to be stored as numbers. Due to the volume of the data and the fact that I'm not the only one performing this task (and some of the others are not Excel savvy) I needed to try and automate this process. I tried the =A1*1 formula and it worked for the numbers but the text I got a #VALUE! error. After much fiddling, I came up with the formula below and it works perfectly!
    =IF(AND(A1="Yes"),"Yes",IF(AND(A1="Not applicable"),"Not applicable",IF(AND(A1="No"),"No",A1*1)))