Skip to content

NUMBERVALUE

Converts text to a number using the decimal and thousands separators you specify, whatever your regional settings.

Syntax

=NUMBERVALUE(, , )

Text

Excel 2013 and later, Excel for Microsoft 365, and Excel for the web. Not available in Excel 2010 or earlier.

Try it

Edit the formula in C2 or change the inputs. The sheet recalculates as you type.

C2
A
B
C
1
Imported amount
Invoice
Number
2
1.234,56
INV-2041
1234.56
3
4

C2 =NUMBERVALUE(A2,",",".") returns 1234.56

How NUMBERVALUE works

NUMBERVALUE converts text to a number, and you tell it which characters mean "decimal point" and "thousands". That makes it the right tool for data from other regions: a file exported from a European system, a price list that uses a comma for decimals, or text that your own settings would read wrongly.

The arguments

  • text is the text to convert.
  • decimal_separator is the character used for the decimal point in the text.
  • group_separator is the character used between thousands in the text.

=NUMBERVALUE("1.234,56",",",".") returns 1234.56. The text uses a comma for decimals and a dot for thousands, and the formula says so. The same text passed to VALUE in a US setting would be read as the wrong number, or fail.

=NUMBERVALUE("12 500,90",","," ") handles a space as the thousands separator, as in many European and Scandinavian exports, and returns 12500.9.

The defaults

If you leave out the second and third arguments, NUMBERVALUE uses the separators from your regional settings. In a US setting, =NUMBERVALUE("1,250.75") returns 1250.75. That default is also the weakness: the same formula gives a different answer on a computer set to another region. When a workbook will be opened in several places, always state both separators.

Percentages and spaces

A percent sign at the end of the text divides the result by 100: =NUMBERVALUE("3.5%") returns 0.035, as long as "." is the decimal separator. Several percent signs divide more than once. Spaces anywhere in the text are ignored, even in the middle, so "3 000" can be read as 3000.

An empty string returns 0, not an error. That is easy to miss in a column with gaps.

When it returns #VALUE!

NUMBERVALUE returns #VALUE! when:

  • the decimal separator appears more than once in the text,
  • a group separator comes after the decimal separator,
  • or the text has characters that can't be part of a number, such as units or letters.

=NUMBERVALUE("12 kg") fails. Strip the unit first with SUBSTITUTE.

NUMBERVALUE or VALUE?

VALUE follows your regional settings and can also convert dates and times. NUMBERVALUE converts numbers only, but you decide the separators. Use VALUE for data that matches your own settings and NUMBERVALUE for anything from outside.

Separators with more than one character

If you pass a longer string as a separator, only its first character is used. A thousands separator of ", " is treated as just ",". Remove units and other symbols before converting.

Arguments

text
The text to convert. A percent sign at the end divides the result by 100, and spaces anywhere in the text are ignored. An empty string returns 0.
decimal_separatoroptional
The character that marks the decimal point in the text, such as "." or ",". If you leave it out, Excel uses the separator from your regional settings. Only the first character is used.
group_separatoroptional
The character that separates thousands in the text, such as ",", "." or a space. If you leave it out, Excel uses the one from your regional settings. Only the first character is used.

Examples

Each example is a live sheet. Change the inputs or the formula and watch the result.

Example 1

European number: comma decimal, dot thousands

C2 =NUMBERVALUE(A2,",",".")

Result: 1234.56

The second argument says the comma is the decimal separator. The third says the dot is the thousands separator.

C2
A
B
C
1
Imported amount
Invoice
Number
2
1.234,56
INV-2041
1234.56
3
4

C2 =NUMBERVALUE(A2,",",".") returns 1234.56

Example 2

Space as thousands separator

C2 =NUMBERVALUE(A2,","," ")

Result: 12500.9

The group separator is a space in quotes.

C2
A
B
C
1
Imported amount
Invoice
Number
2
12 500,90
INV-2042
12500.9
3
4

C2 =NUMBERVALUE(A2,","," ") returns 12500.9

Example 3

Text percentage

C2 =NUMBERVALUE(A2,".",",")

Result: 3.5%

The percent sign divides by 100. Stating both separators means the formula gives the same answer in any regional setting.

C2
A
B
C
1
Imported rate
Product
Rate
2
3.5%
Pallet wrap
3.5%
3
4

C2 =NUMBERVALUE(A2,".",",") returns 3.5%

Example 4

An empty string returns 0

C2 =NUMBERVALUE(A2,".",",")

Result: 0

An empty string is treated as 0, not as an error. Test for blanks first if a missing amount should not look like a zero.

C2
A
B
C
1
Imported amount
Invoice
Number
2
INV-2043
0
3
4

C2 =NUMBERVALUE(A2,".",",") returns 0

Your turn.

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

Task 1 of 2

In B2, convert the European-format text in A2, which uses a comma for decimals and a dot for thousands, into a number. Fill it down to B5.

Answer in B2, then it fills down to B5.

B2
A
B
C
D
1
EU amount
Number
Nordic amount
Number
2
1.234,56
12 500,90
3
987,50
3 075,25
4
15.000,00
480,00
5
2.075,10
1 250,75
6
7

Common mistakes

  • If you leave out the separators, NUMBERVALUE uses your regional settings, so the same formula can return different numbers on different computers. State both separators when the source region is known.
  • #VALUE! appears when the decimal separator occurs twice, when a group separator follows the decimal, or when the text has letters or units. Strip those first.
  • An empty string returns 0, not an error, so blanks in imported data turn into zeros.
  • Only the first character of each separator is used. A separator of ", " is read as ",".
  • Units and letters make the text unreadable. =NUMBERVALUE("12 kg",".",",") returns #VALUE!, so remove the unit with SUBSTITUTE first.

Questions people ask

How do I convert European-format numbers like 1.234,56 to numbers?

Use `=NUMBERVALUE(A2,",",".")`. The second argument is the decimal separator, a comma, and the third is the thousands separator, a dot.

What is the difference between VALUE and NUMBERVALUE?

VALUE reads text with your regional settings and can also convert dates and times. NUMBERVALUE converts numbers only, but lets you set the separators, so the result does not depend on the computer.

Why does NUMBERVALUE return #VALUE!?

The text contains something that is not a number, such as a unit or currency symbol, or the separators are used inconsistently, for example two decimal points. Clean the text and check the separators you passed.

Does NUMBERVALUE handle percentages?

Yes. A percent sign at the end divides by 100, so `=NUMBERVALUE("3.5%",".",",")` returns 0.035.

Which versions of Excel have NUMBERVALUE?

Excel 2013 and later, including Microsoft 365 and Excel for the web. In Excel 2010 and earlier it returns `#NAME?`.

Learn NUMBERVALUE in a real sheet.

NUMBERVALUE is taught in Logic and text, lesson 19: NUMBERVALUE and regional formats. Each lesson is a short, graded exercise like the one above.