WorksheetFunction.Erf Method (Excel)

Returns the error function integrated between lower_limit and upper_limit.

Important

This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality.

For more information about the new function, see the Erf_Precise method.

Syntax

expression .Erf(Arg1, Arg2)

expression A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

Required

Variant

Lower_limit - the lower bound for integrating ERF.

Arg2

Optional

Variant

Upper_limit - the upper bound for integrating ERF. If omitted, ERF integrates between zero and lower_limit.

Return Value

Double

Remarks

  • If lower_limit is nonnumeric, ERF returns the #VALUE! error value.

  • If lower_limit is negative, ERF returns the #NUM! error value.

  • If upper_limit is nonnumeric, ERF returns the #VALUE! error value.

  • If upper_limit is negative, ERF returns the #NUM! error value. Ff194761.awferf1_ZA06051136(en-us,office.14).gifFf194761.awferf2_ZA06051137(en-us,office.14).gif

See Also

Concepts

WorksheetFunction Object

WorksheetFunction Object Members