Contact

ERFC in ONLYOFFICE: Complementary Error Function and Gaussian Tails

Engineering Intermediate ONLYOFFICE Spreadsheet Editor

Calculate the complementary error function with numeric examples, negative arguments, tail probabilities and numerical stability warnings.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: Official ONLYOFFICE syntax is ERFC(x) with exactly one required numeric lower-limit argument. Mathematically it is the complementary error function, erfc(x)=1-erf(x), or the normalized Gaussian integral from x to positive infinity. For example, =ERFC(0) has the independently calculated expected value 1 and =ERFC(1) approximately 0.157299207. These are not observed results from ONLYOFFICE. Official ERFC reference.

Availability and version history

  • Introduced: The original introduction version and date are not established by the official sources checked.
  • Availability: Documented in the current ONLYOFFICE Spreadsheet Editor help; no final working-version endpoint is established.
  • Scope: Docs and Desktop Editors release separately. This unversioned help does not establish availability in every older build, mobile client or deployment.
  • Checked: October 14, 2026, against the official function reference. Documentation check; not a new native test.

When ERFC is useful

ERFC helps calculate normalized Gaussian tail areas that arise in diffusion, signal processing, measurement uncertainties and error-function models. Unlike ERF with its one-argument 0-to-x interpretation, ERFC directly represents the complementary integral from x to infinity. This distinction matters for positive large x, where computing 1-ERF(x) numerically can lose precision if ERF is already extremely close to 1.

For negative real x, ERFC(x) can be greater than 1. That is mathematically correct, not automatically an error. At x=0 it equals 1; it approaches 0 as x increases and 2 as x decreases. These are mathematical definitions and limits; ONLYOFFICE-specific numerical overflow/underflow thresholds have not been tested.

Syntax, one required argument and no optional parameters

=ERFC(x)
Position Argument Required? Documented type and meaning Default
1 x Yes Numeric lower integration limit. None.

=ERFC(A2) is valid under documented English syntax; =ERFC(A2,B2) does not follow the vendor’s signature. The related ERFC.PRECISE(x) function has a separate canonical name and is not a second argument, suffix, or implicit alias. Official ERFC.PRECISE reference. The documentation does not specify how this function coerces text, blank cells or logical arguments; no such native results are invented.

Before entering formulas: reproduce the test worksheet

  1. Create a blank spreadsheet in an ONLYOFFICE Spreadsheet Editor edition you can identify. Use English formula language for the formulas below. Record your Desktop version or the actual Docs/server version and your region if you later report test results.
  2. Enter the specified headers, then enter the table’s input values in the exact cells shown. Numeric inputs must be numeric cells (without quote marks).
  3. Enter the formulas into the output cells exactly as shown, beginning with =. Use Formula → Function to find ERFC or type the function directly. Fill down only through the named last row; do not accidentally include table headers.
  4. Compare your displayed values against the independently computed expected column. For decimals, change display format or use numeric tolerance rather than expecting identical trailing digits.
  5. If your result differs, record the formula, underlying cell type, software platform/version, displayed result, separator/locale settings and any error without overwriting the expected-value reference. ONLYOFFICE’s formula-entry and recalculation guide describes recalculating via the Formula tab, or F9 for the workbook.

Put Input x in A1, ERFC result in B1, Independently expected in C1 and Complement check in D1. Enter the numeric x values in A2:A14 from the following table; enter =ERFC(A2) in B2 and fill to B14. Type the listed numeric expectations in C. In D2, the proposed formula =ERF(A2)+ERFC(A2) should mathematically approximate 1; fill to D14. Use =ABS(B2-C2)<0.000001 as a proposed numeric tolerance check, not a claimed native observation. For the row at x=4, display extra decimal places or scientific notation rather than rounding away the small expected output.

Reproducible ERFC table and independently expected results

Row A: x input B: enter this formula C: expected ERFC(x) D: expected ERF(x)+ERFC(x)
2 -4 =ERFC(A2) 1.99999998458 1
3 -3 =ERFC(A3) 1.9999779095 1
4 -2 =ERFC(A4) 1.99532226502 1
5 -1.5 =ERFC(A5) 1.96610514648 1
6 -1 =ERFC(A6) 1.84270079295 1
7 -0.5 =ERFC(A7) 1.52049987781 1
8 0 =ERFC(A8) 1 1
9 0.5 =ERFC(A9) 0.479500122187 1
10 1 =ERFC(A10) 0.15729920705 1
11 1.5 =ERFC(A11) 0.0338948535247 1
12 2 =ERFC(A12) 0.00467773498105 1
13 3 =ERFC(A13) 2.20904969986e-05 1
14 4 =ERFC(A14) 1.54172579003e-08 1

The expected values were computed separately using math.erfc and a high-precision mathematical library; 13 direct values and 13 independent complement identities were cross-checked. Scientific-style small values are written explicitly so they are not mistaken for zero due to display formatting. No screenshot was used to derive any value.

Advanced example 1: why direct ERFC can be more stable than subtraction

Mathematically, =ERFC(A2) equals =1-ERF(A2) for real x. However, when x is sufficiently positive, ERF(x) is extremely close to 1 and the subtraction of two nearby floating-point numbers may lose significant digits. For tail calculations, use the documented ERFC function when direct complementary values are the quantity needed. This is a numerical-analysis recommendation based on the mathematical definitions, not a measured speed or accuracy benchmark in ONLYOFFICE.

A deliberately extreme value such as x=10 has a mathematically tiny complementary error function (~2.09e-45). Whether a particular ONLYOFFICE build returns a nonzero numeric value, zero, or an error at that magnitude is NOT TESTED. Avoid listing any such result as verified native behaviour. The worksheet table stops at x=4 to keep comparisons interpretable.

Advanced example 2: standard-normal probability transformation

The standard normal CDF is mathematically Phi(z)=0.5*erfc(-z/sqrt(2)). For a z-score in A2, the proposed formula

=0.5*ERFC(-A2/SQRT(2))

computes that transformation, assuming the documented functions are available in the target edition. It is not a vendor-approved probability workflow and has not been executed natively; users needing probabilistic analysis should independently check the model and input assumptions. For z=0, mathematical expectation is 0.5. The SQRT function is separately documented.

Advanced example 3: negative arguments and cancellation

erfc(-x)=2-erfc(x) is a mathematical identity. Thus erfc(-1) is approximately 1.842700793 while erfc(1) is approximately 0.157299207. If the result is bigger than 1, do not clip it to 1, because the complementary error function is not itself a bounded [0,1] probability for every real input. The normalized integral of a Gaussian tail has a particular probabilistic interpretation only after the correct variable transformation.

Practical usage: thresholded Gaussian noise or diffusion scale

Keep the physical measurement, its scale/standard deviation, and the dimensionless argument x in separate columns. ERFC takes the already-computed dimensionless numeric argument, not a string such as "2 seconds" or a raw engineering unit. For a one-sided normal tail at standard-normal z, mathematically 0.5*ERFC(z/SQRT(2)) gives the right-tail probability. Label the input domain clearly. If z is computed from measured data, document the meaning of the standard deviation and assumptions; this reference is about the function, not a substitute for validating a statistical model.

Errors, limits and troubleshooting

Symptom or question Likely issue Verification level and recommended next step
Function name not recognized or a #NAME?-style diagnostic Wrong spelling, formula language, or older installed version. Possible diagnostic only: native error message unverified. Search exact ERFC in the official function picker. Check target product/version and regional language.
Wrong number of arguments Required versus optional inputs do not match the official signature. Compare directly with vendor syntax; do not infer that another spreadsheet’s argument defaults also apply.
Input stored as text or containing units Numeric-looking text, an invalid complex literal, or an incompatible unit suffix may not be accepted. The function page does not exhaustively document coercion. Enter numeric data in Number/General cells or use documented COMPLEX where appropriate; native conversion and error codes remain untested.
Unexpected zeros, decimals or tiny differences Floating-point arithmetic, formatting, or rounding of a displayed value. Compare underlying numbers using a tolerance; distinguish the mathematical definition from implementation precision.
Different separator or localized name Formula Language and region settings vary. See ONLYOFFICE Advanced Settings; confirm settings in the target editor rather than guessing syntax.
Result looks wrong after editing inputs Recalculation or mistaken relative reference while filling down. Inspect Show Formulas, check absolute/relative references, and recalculate from Formula → Calculation as documented.
A negative input returns an expected value above 1 Complementary error functions for negative real arguments are not restricted to probabilities in [0,1]. erfc(-1)≈1.842700793 mathematically; inspect the model rather than clipping the result.
For large positive x the displayed value is 0 Cell number format may round an extremely small positive value to 0, or actual precision limits may arise. Display scientific notation; exact native underflow behaviour and error strings remain unverified.
1-ERF(x) differs from ERFC(x) at a very small tail Subtracting nearly equal floating-point values may lose precision. Prefer the direct ERFC formula for a complementary tail; compare mathematical identity at moderate x.

Do not invent an error value. Where a case is mathematically defined but the editor’s coercion/overflow handling is undocumented, record it as native behaviour unverified, not a guaranteed #VALUE!, #NUM! or other message.

ERF calculates one-argument error integrals and an optional two-bound form; ERFC.PRECISE is separately documented with a single argument; ERF.PRECISE is a distinct single-argument function. SQRT appears in standard-normal transformations. Do not merge ERF, ERF.PRECISE, ERFC, or ERFC.PRECISE into duplicate URLs: they are distinct vendor-documented canonical names.

Compatibility, platform, formula language and limitations of this review

Officially documented: The current, unversioned English ONLYOFFICE Docs Spreadsheet Editor function page for ERFC and Insert Function catalogue list ERFC as an Engineering function. Checked 2026-10-13 (UTC). This supports the existence, purpose and signature of the function in the documented editor; it is not proof of identical behaviour in all past web integrations, all Desktop Editors builds, or mobile versions.

First-supported version: Not established by this research. The vendor maintains distinct Docs release history and Desktop Editors release history. Their availability does not, by itself, identify the first supported release of ERFC. Desktop version compatibility: NOT NATIVELY TESTED; browser/web version compatibility: NOT NATIVELY TESTED; historical versions: UNKNOWN; imported workbook round-trip and specific file-format compatibility: NOT TESTED.

English formulas: Examples use an initial = and commas between arguments where necessary, following the official Insert Function instructions. Under File → Advanced Settings, the editor offers Formula Language, Region, and decimal/thousands separators (official Advanced Settings guide). Translated formula names, regional separators and localized decimal entry are not verified here. Do not blindly swap commas for semicolons or translate a function name unless checked in the actual target installation.

Evidence classification: Every result labelled expected is derived from independent mathematical or logical computation, never copied from an ONLYOFFICE screenshot or claimed to have been observed in a running editor. Native Desktop executions: 0. Native web executions: 0. Any error strings described as possible diagnostic are not observed output.

Official sources and claim-level evidence — checked 2026-10-13 UTC

Claim Reference and method Evidence classification
ERFC exists and its exact syntax/argument order ONLYOFFICE ERFC reference, heading, syntax, argument table; directly checked 2026-10-13. OFFICIAL DOCUMENTATION, current unversioned English Docs reference.
Function picker and English formula syntax ONLYOFFICE Insert Function guide, formula-entry instructions and Engineering category; checked 2026-10-13. OFFICIAL DOCUMENTATION, not a runtime test.
Formula language, region and numeric separators are configurable ONLYOFFICE Advanced Settings, Regional settings; checked 2026-10-13. OFFICIAL DOCUMENTATION, localized names not tested.
Scope of Docs versus Desktop and historical releases Docs changelog; Desktop changelog; checked 2026-10-13. Separate release histories observed; per-function first-supported version not established.
26 numeric/complex comparison cases from the worksheet Standard mathematical definitions cross-checked using independent Python standard-library logic and high-precision mpmath/decimal procedures. INDEPENDENT MATH, not native ONLYOFFICE output.
Complementary integral lower limit to infinity ERFC documentation, description and syntax, checked 2026-10-13. OFFICIAL DOCUMENTATION
Separate ERFC.PRECISE(x) canonical function ERFC.PRECISE, checked 2026-10-13. OFFICIAL DOCUMENTATION
Separate one- and two-bound error function ERF, checked 2026-10-13. OFFICIAL DOCUMENTATION
Extreme-tail stability caution ERFC and ERF define complementary expressions; numerical cancellation is independent math, not a native comparison. INDEPENDENT NUMERICAL ANALYSIS