Excel - NUMBERVALUE Function



NUMBERVALUE Function

The NUMBERVALUE function evaluates the input text and transforms it into a number in a locale-independent way. This function was embedded in Excel 2013 and cannot be used in the older versions before Excel 2013. This function will resolve the issue of locale settings often faced in the VALUE function. For example, a finance analyst imported the dataset from an external site with a different extension. All the field values are in text form, so you can gracefully convert them into numbers for further analysis.

Compatibility

This robust NUMBERVALUE function is compatible with the following versions of MS Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2024
  • Excel 2024 for Mac
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2016
  • Excel 2013

Syntax

The syntax of the NUMBERVALUE function in Excel is as follows −

=NUMBERVALUE(Text, [Decimal_separator], [Group_separator ])

Arguments

You can use the following arguments with the NUMBERVALUE function −

Argument Description Required/ Optional
Text A string that is required for the conversion. Required
Decimal_separator A character segregates the resulting value's integer and fractional part. Optional
Group_separator A character segregates numbers groupings, like millions from thousands, etc. Optional

Point to remember

  • If only the Text argument is specified, then separators from the current locale will be employed.
  • Only the starting character is being utilized in case so many characters are used in the Group_separator and Decimal_separator arguments.
  • If the Text argument contains empty text, then the NUMBERVALUE function will retrieve a 0 value.
  • If empty spaces are provided in the "TEXT" argument, they will be avoided if found in any position. For instance, " 1 210 " is treated as 1210.
  • If a decimal separator is used more than once in the Text argument, NUMBERVALUE returns the #VALUE! error value.
  • In the text argument, if the group separator encounters earlier than the decimal separator, then the group separator is avoided.
  • In the text argument, if the group separator encounters following the decimal separator, NUMBERVALUE returns the #VALUE! error value.
  • If invalid data is found in the arguments, then the NUMBERVALUE function will retrieve the #VALUE! Error.
  • If the number contains more than one percent sign (%) at the rear, like 4%%, then these percent signs are added to the defined number and will be computed in the result. The NUMBERVALUE result will be the same as the usual formula.

Examples of NUMBERVALUE Function

Practice the following example to learn the use of the NUMBERVALUE function in Excel.

Example 1: Calculate the NUMBERVALUE Function for the Given Input

Solution

Step 1 − Assume the sample worksheet "Sheet1", where the input values are defined in the B2 and B3 cells.

Calculate NUMBERVALUE Function for Given Input1

Step 2 − Select the C2 cell and type the formula =NUMBERVALUE(B2) and press the Enter tab.

Calculate NUMBERVALUE Function for Given Input2

Hence, the NUMBERVALUE function will return the 120000 result.

Calculate NUMBERVALUE Function for Given Input3

Step 3 − Similarly, you can apply the NUMBERVALUE function in the C3 cell by double-clicking on it and writing the formula =NUMBERVALUE(B3) cell.

Calculate NUMBERVALUE Function for Given Input4

After that, press the Enter tab.

Calculate NUMBERVALUE Function for Given Input5

Example 2

If the number contains more than one percent sign (%) at the rear, like 4%%, then these percent signs are added to the defined number and will be computed in the result.

Solution

You can select the range C2:C4 and write the expression =NUMBERVALUE(B2) in the formula bar.

Calculate NUMBERVALUE Function for Given Input6

After that, press the "ctrl+enter" to obtain the resulting output.

Calculate NUMBERVALUE Function for Given Input7

In this example, all the % signs will be used in the result evaluation of the NUMBERVALUE function.

Example 3: Combine the SUM function with the NUMBERVALUE function

Solution

Consider the sample dataset where the Item's price is specified in the cell range C2:C6. Enter the formula =SUM(NUMBERVALUE(C2:C6, ",", ".")) in the D2 cell. In this expression, the decimal separator is comma (,), and the group separator is (.) inside the NUMBERVALUE function.

Combine SUM Function with NUMBERVALUE Function1

Afterward, hit the Enter tab to obtain the result.

Combine SUM Function with NUMBERVALUE Function2

Combine SUM Function with NUMBERVALUE Function3

Download Practice Sheet

You can download and use the sample data sheet to practice the NUMBERVALUE function.

Advertisements