Numbers that are stored as text can cause unexpected results, like an uncalculated formula showing instead of a result.
Most of the time, Excel will recognize this, and you'll see an alert next to the cell where numbers are being stored as text. If you see the alert:
-
Select the cells you want to convert, and then select the error notification .
-
Select Convert to Number from the menu.
-
You will see the values left aligned and green triangle warning removed.
Check out Format numbers to learn more about formatting numbers and text in Excel.
Notes: If the alert button is not available, you can enable error alerts by doing the following:
-
In Excel, select File, then Options.
-
Select Formulas, then under Error Checking, select the Enable background error checking check box.
Use a formula to convert from text to numbers
You can use the VALUE function to return just the numeric value of the text.
-
Insert a new column next to the cells with text.
In this example, column E contains the text stored as numbers. Column F is the new column.
-
In one of the cells of the new column, type =VALUE() and inside the parentheses, type a cell reference that contains text stored as numbers.
In this example it's cell E23. -
Next, fill the cell's formula down, into the other cells. To do this, hover your cursor on the lower-right corner of the cell until it changes to a plus sign.
-
Click and drag down to fill the formula to the other cells. You can now use this new column, or you can copy and paste these new values to the original column.
Notes: To copy and paste these new values to the original column
-
Select the cells with the new formula.
-
Press Ctrl + C. Select the first cell of the original column.
-
On the Home tab, select the arrow below Paste, and then select Paste Special > Values or use the keyboard shortcut Ctrl + Shift + V.
-
Numbers that are stored as text can cause unexpected results, like an uncalculated formula showing instead of a result.
Use a formula to convert from text to numbers
You can use the VALUE function to return just the numeric value of the text.
-
Insert a new column
Insert a new column next to the cells with text. In this example, column E contains the text stored as numbers. Column F is the new column.
-
Use the VALUE function
In one of the cells of the new column, type =VALUE() and inside the parentheses, type a cell reference that contains text stored as numbers. In this example it's cell E23. -
Rest your cursor here
Next, fill the cell's formula down, into the other cells.
To do this, rest your cursor on the lower-right corner of the cell until it changes to a plus sign.
-
Click and drag down
Click and drag down to fill the formula to the other cells. You can now use this new column, or you can copy and paste these new values to the original column.
To do this:
-
Select the cells with the new formula.
-
Press Ctrl + C. Select the first cell of the original column.
-
On the Home tab, select the arrow below Paste, and then select Paste Special > Values.
or use the keyboard shortcut Ctrl+ Shift + V.
Related topics
Replace a formula with its result Top ten ways to clean your data CLEAN function