Convert numbers stored as text to numbers
If you see cells with green triangles and numbers that are aligned to the left, then you have numbers stored as text. This can cause unexpected results and formatting problems. In addition when formulas are stored as text, the formula won't show the final result as a number. Instead, it will display as text and might look "frozen in time." The following process will show you how to convert these cells to numbers.
1. Select a column
![Selected column Selected column](https://support.content.office.net/en-us/media/908ee357-e8ad-404e-bd8a-1b9338827ac3.png)
Select a column with this problem. If you don't want to convert the whole column, you can select one or more cells instead. Just be sure the cells you select are in the same column, otherwise this process won't work.
2. Set the format
![Currency format selected Currency format selected](https://support.content.office.net/en-us/media/1722aed3-7ff4-4e62-8edd-4a86e345ee9d.png)
Press CTRL + 1 (or + 1 on the Mac). Then select any number format or currency format.
3. Click Data > Text to Columns
![Data tab, Text to Columns button Data tab, Text to Columns button](https://support.content.office.net/en-us/media/95da4f35-d902-43c7-a90b-1bb2eb4f05ed.png)
On the Data tab, click Text to Columns.
4. Click Finish
![Finish button Finish button](https://support.content.office.net/en-us/media/df7357c9-b7bf-4b04-8c4f-7ad24934ecc0.png)
Click Finish right away and Excel will convert the cells.
Note: If you still see formulas that are not showing as numeric results, then you may have Show Formulas turned on. Go to the Formulas tab and make sure Show Formulas is turned off.
Other ways to convert:
Use a formula to convert from text to numbers
You can use the VALUE function to return just the numeric value of the text.
1. Insert a new column
![New column next to text numbers New column next to text numbers](https://support.content.office.net/en-us/media/5f3e5c85-75e2-448d-8c06-c494f6c28ca3.png)
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.
2. Use the VALUE function
![Cell F23 with formula: =VALUE(E23) and result of 107.71 Cell F23 with formula: =VALUE(E23) and result of 107.71](https://support.content.office.net/en-us/media/78914ad4-2088-45d2-a701-81b0637efa45.png)
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.
3. Rest your cursor here
![Cursor resting on lower-right corner of cell Cursor resting on lower-right corner of cell](https://support.content.office.net/en-us/media/a35d8054-0307-43db-8d24-5b766ae2d1eb.png)
Now you'll fill the cell's formula down, into the other cells. If you've never done this before, here's how to do it: Rest your cursor on the lower-right corner of the cell until it changes to a plus sign.
4. Click and drag down
![Cursor dragged down, cells filled with formula Cursor dragged down, cells filled with formula](https://support.content.office.net/en-us/media/b8a361dc-bb41-494f-a5d4-0c911d570131.png)
Click and drag down to fill the formula to the other cells. After that's done, you can use this new column, or you can cut and paste these new values to the original column. Here's how to do that: Select the cells with the new formula. Press CTRL + X. Click the first cell of the original column. Then on the Home tab, click the arrow below Paste, and then click Paste Special > Values.
Use Paste Special and Multiply
In this technique, you multiply each cell by 1 in order to convert from a text number to a regular number. Because you're multiplying the contents of the cell by 1, the result in the cell looks identical. However, Excel actually replaces the text-based contents of the cell with a numerical equivalent. This method is handy because other methods require the cells to be in one column, but this method does not.
-
Select a blank cell that doesn't have a green triangle and isn't aligned to the left.
-
Press CTRL + 1.
-
On the Number tab, click General, and then click OK.
-
In the cell, type 1, and then press ENTER.
-
Select the cell, and then press CTRL + C to copy the value.
-
Select the cells that contain the numbers stored as text that you want to convert.
-
On the Home tab, click the arrow below Paste, and then click Paste Special.
-
Under Operation, select Multiply, and then click OK.
No comments:
Post a Comment