ERF function
ERF returns the Gaussian error function, used in probability and diffusion calculations. With one argument it integrates from 0, and most users who want normal probabilities choose NORM.S.DIST instead.
Example
Read it as a sentence: find the error function value for 1, which gives 0.842700792949715.
A
B
C
D
1
0.842700792949715
2
3
Syntax
ERF(lower_limit, [upper_limit])
Arguments in [square brackets] are optional.
-
lower_limit(required) - Lower bound of integration; if upper_limit is omitted, integration runs from 0 to this.
-
upper_limit(optional) - Upper bound of integration.
Returns: The error function value.
What Excel actually returns
Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.
| Formula | Excel shows | Case |
|---|---|---|
=ERF(0.5) | 0.520499878 | 0.5 |
=ERF(0) | 0 | 0 |
=ERF(-0.5) | -0.520499878 | Negative |
=ERF(10) | 1 | Large |
=ERF("0.5") | 0.520499878 | Text number |
=ERF({0.5,1}) | 0.520499878 | Spill |
=ERF("a") | #VALUE! | Text |
=ERF(TRUE) | #VALUE! | TRUE |
Watch out for
- With one argument it integrates from 0, not from minus infinity.
Where it works
- Excel
- ERF is in every version of Excel from 2007 on.
- Google Sheets
- Same name, same behaviour for everyday use.
Part of Engineering functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .