Number value
Syntax:¶
NUMBERVALUE(text, [decimal_separator], [group_separator])
- text: The text value that you want to convert into a number.
- decimal_separator (optional): The character used as the decimal separator in the
text. If omitted, your system's default decimal separator will be used. - group_separator (optional): The character used as the grouping separator (e.g., thousands separator) in the
text. If omitted, your system's default grouping separator will be used.
Description:¶
The NUMBERVALUE function in Excel converts a text representation of a number into an actual numeric value. This
function is particularly useful when working with text data from external sources or systems that use different decimal
or grouping separators.
This function ensures accurate conversion by specifying custom separators, which can handle regional or international differences in number formatting.
For example:
NUMBERVALUE("text", [decimal_separator], [group_separator]) = numeric value
Examples:¶
=NUMBERVALUE("1,234.56")would return1234.56based on the default system separators.=NUMBERVALUE("1.234,56", ",", ".")would return1234.56, where,is defined as the decimal separator and.as the group separator.=NUMBERVALUE("12345", ".", ",")would return12345, as no grouping or decimal is used in the text.=NUMBERVALUE("7 500", ".", " ")would return7500, with a space as the grouping separator.
Notes:¶
- The
NUMBERVALUEfunction is locale-independent and works even when the separators in the text differ from the system's default settings. - If the
textargument contains an invalid numeric format, the function will return a#VALUE!error. - Leading or trailing spaces in the
textare ignored. - This function is especially helpful for handling data imported from external systems or regions with varying number formatting practices.