Skip to content

How to convert text to numbers in Excel in Excel

Turn numbers stored as text into real numbers with VALUE, a double negative or NUMBERVALUE, or fix them in place with Text to Columns.

A column of quantities looks right, but the total at the bottom is too low or zero. The numbers are stored as text.

You can usually spot them. They are left-aligned instead of right-aligned, a small green triangle may sit in the corner of the cell, and SUM skips them. They arrive from exports, copied web tables and systems that store everything as text.

The formula fix is VALUE: =VALUE(A2). Two shorter forms do the same thing, because arithmetic forces conversion: =--A2 (a double negative) and =A2*1. Pick one and use it consistently, so the next person recognises it.

When the text uses separators that do not match your computer's settings, such as 1.250,50 from a European system, name the separators yourself with NUMBERVALUE: =NUMBERVALUE(D2, ".", ",") reads "." as the decimal point and "," as the thousands separator, whatever the regional settings.

Without formulas, there are two ribbon fixes. Select the cells and, if the green-triangle warning icon appears, open it and choose Convert to Number. Or select the column, go to Data > Text to Columns, and choose Finish straight away: Excel re-reads the cells and converts the ones that look like numbers.

Keep one thing in mind: a converted copy lives in a new column. If you want to replace the original, copy the new column and paste it back with Paste Special > Values. The Logic and text track practises this alongside TRIM and CLEAN.

3 ways to do it

1VALUE or a double negative

=VALUE(A2)

  1. In B2 type =VALUE(A2), or the shorter =--A2, and press Enter.
  2. Fill the formula down and use SUM on the new column.
  3. To replace the originals, copy the results and use Paste Special > Values over the original cells.

2NUMBERVALUE with named separators

=NUMBERVALUE(D2,".",",")

  1. Use NUMBERVALUE when the decimal and thousands separators in the text differ from your computer settings.
  2. Give the decimal separator as the second argument and the group separator as the third.

3Convert in place on the ribbon

  1. Select the cells, open the green warning icon, and choose Convert to Number.
  2. Or select the column and choose Data > Text to Columns > Finish to re-read the cells as numbers.

Try it yourself

Solve it in the sheet. Every answer is checked, with hints if you need them.

Task 1 of 2

In B2, convert the text in A2 to a real number, then fill down to B8.

Answer in B2, then it fills down to B8.

B2
A
B
C
D
E
F
1
Quantity (text)
Quantity
Amount (text)
Amount
2
120
1,250
3
85
980
4
1042
2,075
5
310
640
6
57
12,300
7
2200
8
96

Learn it properly, one graded sheet at a time.

Logic and text covers this in lesson 18, VALUE and text numbers.