Skip to content
AnIntent

How to Convert Text to Numbers in Excel (Green Triangle, VALUE, and Paste-Back)

Fix numbers stored as text in Excel with Convert to Number, turn the green triangle back on, or use VALUE and paste the results back.

AnIntent Editorial · · 3 min read

laptop computer on glass-top table
Photo by Carlos Muza on Unsplash
In this article
  1. Why numbers stored as text cause trouble
  2. Method 1: Use the green triangle's Convert to Number
  3. No green triangle? Turn background error checking back on
  4. Method 2: Convert with the VALUE function
  5. Paste the converted values back over the original column
  6. Check that the conversion worked
Share this article

You can convert text to numbers in Excel in two ways. The quick way is the green triangle's Convert to Number command. The fallback is a VALUE formula whose results you paste back over the original column. Below is the order to try them, plus the fix for when the green triangle never shows up.

The steps come from Microsoft's support page on numbers stored as text. It lists Excel for Microsoft 365, Excel 2024, Excel 2021, Excel 2019, Excel 2016 and Excel Web App. The menu paths here follow the page's Windows instructions. Excel for the web may differ, and Microsoft has a separate page for Excel for the web.

Why numbers stored as text cause trouble

This usually happens after you paste from a CSV file, a web page or an accounting export. The cells look like numbers, but Excel treats them as text. Microsoft warns that this can cause unexpected results, such as a formula appearing in the cell instead of its result.

Method 1: Use the green triangle's Convert to Number

Microsoft says Excel usually flags these cells with a green error indicator in the top-left corner of the cell. Try this method first.

  1. Select the cells you want to convert.
  2. Select the error indicator next to the selection, or press Alt+Shift+F10.
  3. Choose Convert to Number from the menu.

The green triangles should disappear once the cells become numbers.

No green triangle? Turn background error checking back on

If the cells clearly hold text but no error indicator appears, error checking may be switched off. Microsoft's fix is:

  1. Go to File > Options.
  2. Select Formulas.
  3. Under Error Checking, tick Enable background error checking.

Go back to the sheet and try Method 1 again.

Method 2: Convert with the VALUE function

Use this when Convert to Number isn't available or doesn't fix the data. The function's syntax, per Microsoft's VALUE function page, is:

VALUE(text)

In Microsoft's example, the text numbers are in column E and the helper column is F.

  1. Insert a new column next to the cells that hold text.
  2. In the first cell of the new column, type the formula below. Point it at the first cell holding a text number. Microsoft's example uses E23:
=VALUE(E23)
  1. Fill the formula down. Drag the lower-right corner of the cell when the cursor changes to a plus sign.

You can now use the new column as it is. To keep your sheet layout unchanged, paste the results back into the original column.

Paste the converted values back over the original column

If you copy and paste normally, you get formulas instead of numbers. Paste values instead:

  1. Select the cells that contain the new VALUE formulas and press Ctrl+C.
  2. Select the first cell of the original column.
  3. On the Home tab, select the arrow below Paste, then choose Paste Special > Values. The keyboard shortcut is Ctrl+Shift+V.

The original column now holds real numbers. The helper column has done its job, so you can delete it.

Check that the conversion worked

Totals and other calculations should now pick up the converted cells. If a PivotTable built on this data was counting a field instead of summing it, see how to fix PivotTable fields that count, not sum. Conditional totals like SUMIFS with several conditions also need the values to be real numbers.

If neither Convert to Number nor VALUE fixes your data, the problem is outside the scope of this guide, which covers only these two methods.

Common questions

Why is Convert to Number missing in Excel?

The command appears in the green error indicator's menu. If no indicator shows, go to File > Options > Formulas and tick Enable background error checking under Error Checking.

What is the keyboard shortcut for the error indicator menu?

Microsoft lists Alt+Shift+F10 as the shortcut to open it for the selected cells.

What is the syntax of the VALUE function?

VALUE(text). For example, =VALUE(E23) converts the text number in cell E23.

How do I paste only values in Excel?

Copy the cells, select the destination, then on the Home tab choose the arrow below Paste > Paste Special > Values, or press Ctrl+Shift+V.

printing machine
How-to

How to Fit an Excel Sheet on One Page When Printing (and Keep It Readable)

Print a wide Excel sheet on one page or one page wide with Scale to Fit, read the Scale box for legibility, and fix Fit to when it seems broken.

· 5 min

More in Cloud & Productivity Software