Excel ERF Function
The ERF function returns the error function integrated between lower_limit and upper_limit.
Syntax
=ERF (lower_limit, [upper_limit])
Arguments
- Lower_limit (required): The lower limit of integration.
- Upper_limit (optional): The upper limit of integration. If omitted, the integration between 0 and the lower_limit will be returned.
Return value
The ERF function returns a numeric value.
Function notes
- The ERF function has been improved in Excel 2010 so that it can calculate negative values.
In Excel 2007, the ERF function only accepts positive values. If any of the supplied arguments are negative values, the ERF function will return the #NUM! error value. - The #VALUE! error value occurs if any of the supplied arguments are non-numeric.
- When the upper_limit is omitted, ERF integrates between zero (as the lower_limit value) and the lower_limit (as the upper_limit value). Therefore, when the lower_limit is positive, ERF returns a positive result. Vice versa.
What's more, when the lower_limit is greater than the upper_limit, ERF returns a negative result. Vice versa. - The resulting range returned by the ERF function is between -1 and 1.
- The equation of the Error function is:
Examples
Example One: Result Without Upper Limit
In this case, we want to calculate the Error Function when the upper_limit argument is omitted. That means the ERF function integrates between zero and the lower_limit. Please do as follows.
1. Please copy the formula below into cell E5, then press the Enter key to get the result.
=ERF (B5)
2.Select this result cell and drag its autofill handle down to get the rest of the results.
Notes:
- As the above screenshot shows, when the only argument lower_limit is negative, the returned result is also negative. Vice versa.
- When the only argument lower_limit is zero (0), ERF returns zero (0) as the result.
- The argument in each of the above formulas is supplied as a cell reference containing a numeric value.
- We can also directly input a value in the formula. For example, the formula in cell E5 can be changed to:
=ERF (-1)
Example Two: Result with Upper Limit
In this case, we want to calculate the Error Function when both the lower_limit and the upper_limit arguments are provided. Please do as follows.
1. Please copy the formula below into cell F5, then press the Enter key to get the result.
=ERF (B5, C5)
2.Select this result cell and drag its autofill handle down to get the rest of the results.
Notes:
- As the above screenshot shows, when the upper_limit is greater than the lower_limit, ERF returns a positive result. Vice versa.
- The arguments in each of the above formulas are supplied as cell references containing numeric values.
- We can also directly input values in the formula. For example, the formula in cell F5 can be changed to:
=ERF (-1, 0)
Relative Functions:
Excel EVEN Function
The EVEN function rounds numbers away from zero to the nearest even integer.
Excel EXP Function
The EXP function returns the result of the constant e raised to the nth power.
The Best Office Productivity Tools
Kutools for Excel - Helps You To Stand Out From Crowd
Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...
Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)
- One second to switch between dozens of open documents!
- Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
- Increases your productivity by 50% when viewing and editing multiple documents.
- Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.