Text function

NUMBERVALUE function

Converts text to a number using the decimal and thousands separators you specify, so "1.234,56" can become 1234.56 on any PC.

Available in Excel 2013 and later, Microsoft 365, Excel for the web

Excel 2013 and laterNot in Google Sheets

Syntax

NUMBERVALUE(text, [decimal_separator], [group_separator])
ArgumentWhat it means
textRequiredThe text to convert, e.g. "1.234,56" or a cell containing it.
decimal_separatorOptionalThe character used as decimal point in the text. Default: your system's decimal separator.
group_separatorOptionalThe character used as thousands separator in the text. Default: your system's group separator.

Returns: A number.

How NUMBERVALUE works

Numbers are written differently around the world: an American writes 1,234.56, a German 1.234,56, a Swiss 1'234.56. When you import a bank statement or CSV from another country, Excel often leaves such values as text because they do not match your own settings. VALUE can only read your local style, but NUMBERVALUE lets you say which character is the decimal separator and which is the thousands separator in the source text.

Spaces anywhere in the text are ignored, so "2 500,00" works. A trailing percent sign divides by 100 (several % signs divide repeatedly). Only the first character of each separator argument is used. If the thousands separator appears after the decimal separator, or the decimal separator appears more than once, you get #VALUE!.

The result is a real number you can sum and format however you like. An empty text returns 0.

Examples

1European amount on a US/UK computer

B2fx=NUMBERVALUE(A2,",",".")
AB
1Amount (from German bank)
21.234,561234.56

Result: 1234.56

Comma is declared as the decimal separator and dot as the group separator, so the text becomes the number 1234.56.

2Percentage written with a decimal comma

B2fx=NUMBERVALUE(A2,",")
AB
1Discount (text)
212,5%0.125

Result: 0.125

12,5 is read as 12.5 and the % divides it by 100. Format B2 as a percentage to see 12.5%.

3Spaces as thousands separator

B2fx=NUMBERVALUE(A2,",")
AB
1Invoice total (French)
22 500,002500

Result: 2500

Spaces are ignored, and the comma is the decimal separator.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#VALUE!The text contains letters or other characters that are not part of a number, the decimal separator appears twice, or a group separator appears after the decimal separator.Clean the text first (e.g. remove currency codes with SUBSTITUTE) and check the separator arguments.

Tips

  • Currency symbols are not stripped: NUMBERVALUE("€12,50",",") fails. Use SUBSTITUTE(A2,"€","") inside it.
  • For a whole column of imported text numbers, Data > Text to Columns > Advanced offers the same separator settings without formulas.

Google Sheets

Use VALUE (it follows the spreadsheet locale) or VALUE(SUBSTITUTE(SUBSTITUTE(text, ".", ""), ",", ".")) for other separators.

NUMBERVALUE in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishTALVÆRDI
DutchNUMERIEKE.WAARDE
FinnishNROARVO
FrenchVALEURNOMBRE
GermanZAHLENWERT
HungarianSZÁMÉRTÉK
ItalianNUMERO.VALORE
Norwegian (Bokmål)TALLVERDI
PolishWARTOŚĆ.LICZBOWA
Portuguese (Brazil)VALORNUMÉRICO
Portuguese (Portugal)VALOR.NÚMERO
RussianЧЗНАЧ
SpanishVALOR.NUMERO
SwedishTALVÄRDE
TurkishSAYIDEĞERİ