Rediger

Del via


WorksheetFunction.NumberValue method (Excel)

Converts text to number in a locale-independent manner.

Syntax

expression.NumberValue (Arg1, Arg2, Arg3)

expression A variable that represents a WorksheetFunction object.

Parameters

Name Required/Optional Data type Description
Arg1 Required String String representing the number that you want to convert.
Arg2 Required String Character used as the decimal separator in the string.
Arg3 Required String Character used as the group separator in the string.

For more information about the meaning of the arguments, see the Excel NumberValue function Help page.

Return value

Double

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.