The NUMBERVALUE function in Excel is a powerful tool that allows users to convert text representations of numbers into actual number values, independent of locale settings. This functionality is particularly useful when dealing with data imported from different regions, ensuring consistency and accuracy in numerical calculations.
Syntax
NUMBERVALUE(text, [decimal_separator], [group_separator])
- text: The text string that you want to convert into a number.
- decimal_separator: (Optional) The character used to denote the decimal point. The default is determined by the system’s locale.
- group_separator: (Optional) The character used to separate groups of thousands. This is also determined by the system’s locale by default.
Example #1
NUMBERVALUE("1.234,56", ",", ".")
In this example, the function converts the European formatted number “1.234,56” into the standard number 1234.56 by specifying “”,”” as the decimal and group separators. The result is: 1234.56.
Example #2
NUMBERVALUE("3,142", ".", ",")
This function call transforms the text “3,142” into the number 3142, interpreting the comma as the thousands separator and the period as the decimal point. The result is: 3142.
Example #3
NUMBERVALUE("1,000.5", ".", ",")
Here, the function converts the string “1,000.5” into the number 1000.5, acknowledging the comma as the thousands separator. The result is: 1000.5.
Error handling
- VALUE! – Occurs when the text input cannot be interpreted as a number.
- NUM! – Happens when the specified separators are invalid or the resulting number is out of the allowable range.