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])| Argument | What it means | |
|---|---|---|
text | Required | The text to convert, e.g. "1.234,56" or a cell containing it. |
decimal_separator | Optional | The character used as decimal point in the text. Default: your system's decimal separator. |
group_separator | Optional | The 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
| A | B | |
|---|---|---|
| 1 | Amount (from German bank) | |
| 2 | 1.234,56 | 1234.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
| A | B | |
|---|---|---|
| 1 | Discount (text) | |
| 2 | 12,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
| A | B | |
|---|---|---|
| 1 | Invoice total (French) | |
| 2 | 2 500,00 | 2500 |
Result: 2500
Spaces are ignored, and the comma is the decimal separator.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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. UseSUBSTITUTE(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.
| Language | Function name |
|---|---|
| Danish | TALVÆRDI |
| Dutch | NUMERIEKE.WAARDE |
| Finnish | NROARVO |
| French | VALEURNOMBRE |
| German | ZAHLENWERT |
| Hungarian | SZÁMÉRTÉK |
| Italian | NUMERO.VALORE |
| Norwegian (Bokmål) | TALLVERDI |
| Polish | WARTOŚĆ.LICZBOWA |
| Portuguese (Brazil) | VALORNUMÉRICO |
| Portuguese (Portugal) | VALOR.NÚMERO |
| Russian | ЧЗНАЧ |
| Spanish | VALOR.NUMERO |
| Swedish | TALVÄRDE |
| Turkish | SAYIDEĞERİ |