← All functions

CHIDIST

Quirk found

Category: Compatibility · Last tested 2026-09-01

Real compatibility results for the CHIDIST function: executed in Excel for the web, Google Sheets and LibreOffice Calc, with desktop Excel behavior from Microsoft’s official documentation (we do not run desktop Excel — Excel for the web is a different application and is executed separately). Syntax and links to that documentation are below.

Support matrix

EngineDocumentedLive-testedVerdict
Excel (desktop)Yes No — documented only n/a
Excel for the web— Yes (recalc, 2026-09-01) Supported, behaves as documented
Google SheetsYes Yes (Drive import, 2026-08-31) Supported, behaves as documented
LibreOffice CalcYes Yes (25.8.7.3, 2026-08-31) Quirk found

LibreOffice version history

We executed the same test cases under each LibreOffice release to show exactly when CHIDIST’s support changed — not documentation claims, real results.

LibreOffice versionVerdictTested
24.2.0.3 Quirk found 2026-08-31
24.8.7.2 Quirk found 2026-08-31
25.2.0.3 Quirk found 2026-08-31
25.8.7.3 Quirk found 2026-08-31

Why isn't CHIDIST working in LibreOffice?

CHIDIST exists in LibreOffice 25.8.7.3, but it is not a drop-in match for Excel — our executed tests found real behavioral differences (detailed in the test results on this page). If a formula that works in Excel or Google Sheets misbehaves in LibreOffice, compare your usage against the failing cases above before assuming your data is wrong.

Discovered quirks

Executed test cases

Excel for the web (executed 2026-09-01 via OneDrive recalculation)

These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.

FormulaDescriptionResultExpectedVerdict
=ROUND(CHIDIST(A2,A3),7) Microsoft's documented worked example: right-tailed chi-squared probability at x=18.307 with 10 degrees of freedom 0.0500006 0.0500006
Provenance

Microsoft's page publishes this example's result as 0.0500006. Independently derived from the documented definition CHIDIST = P(X > x) for a chi-squared random variable: scipy.stats.chi2.sf(18.307, 10) = 0.05000058909139812 -> 0.0500006 at 7 dp

Matched
=ROUND(CHIDIST(A2,10.9),7) A non-integer degrees-of-freedom argument, which the documentation says is truncated 0.0500006 0.0500006
Provenance

Excel documents "If deg_freedom is not an integer, it is truncated", so 10.9 must behave exactly as 10 and return the documented 0.0500006. Independently checked that this discriminates: a genuine 10.9 degrees of freedom would give chi2.sf(18.307, 10.9) = 0.071937

Matched
=ROUND(CHIDIST(3,1),7) A second point on the distribution, at 1 degree of freedom 0.0832645 0.0832645
Provenance

Derived from the same documented right-tail definition: scipy.stats.chi2.sf(3, 1) = 0.08326451666355042 -> 0.0832645 at 7 dp. Equivalently 2*(1 - Phi(sqrt(3))), since a chi-squared variate with 1 degree of freedom is the square of a standard normal

Matched
=CHIDIST(-1,A3) A negative x value #NUM! #NUM!
Provenance

Excel documents: "If x is negative, CHIDIST returns the #NUM! error value."

Matched
=CHIDIST(A2,0) Zero degrees of freedom #NUM! #NUM!
Provenance

Excel documents: "If deg_freedom < 1 or deg_freedom > 10^10, CHIDIST returns the #NUM! error value."

Matched
=CHIDIST("abc",A3) A non-numeric x argument #VALUE! #VALUE!
Provenance

Excel documents: "If either argument is nonnumeric, CHIDIST returns the #VALUE! error value."

Matched

Google Sheets (executed 2026-08-31 via Drive import)

Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.

FormulaDescriptionResultExpectedVerdict
=ROUND(CHIDIST(A2,A3),7) Microsoft's documented worked example: right-tailed chi-squared probability at x=18.307 with 10 degrees of freedom 0.0500006 0.0500006
Provenance

Microsoft's page publishes this example's result as 0.0500006. Independently derived from the documented definition CHIDIST = P(X > x) for a chi-squared random variable: scipy.stats.chi2.sf(18.307, 10) = 0.05000058909139812 -> 0.0500006 at 7 dp

Matched
=ROUND(CHIDIST(A2,10.9),7) A non-integer degrees-of-freedom argument, which the documentation says is truncated 0.0500006 0.0500006
Provenance

Excel documents "If deg_freedom is not an integer, it is truncated", so 10.9 must behave exactly as 10 and return the documented 0.0500006. Independently checked that this discriminates: a genuine 10.9 degrees of freedom would give chi2.sf(18.307, 10.9) = 0.071937

Matched
=ROUND(CHIDIST(3,1),7) A second point on the distribution, at 1 degree of freedom 0.0832645 0.0832645
Provenance

Derived from the same documented right-tail definition: scipy.stats.chi2.sf(3, 1) = 0.08326451666355042 -> 0.0832645 at 7 dp. Equivalently 2*(1 - Phi(sqrt(3))), since a chi-squared variate with 1 degree of freedom is the square of a standard normal

Matched
=CHIDIST(-1,A3) A negative x value #NUM! #NUM!
Provenance

Excel documents: "If x is negative, CHIDIST returns the #NUM! error value."

Matched
=CHIDIST(A2,0) Zero degrees of freedom #NUM! #NUM!
Provenance

Excel documents: "If deg_freedom < 1 or deg_freedom > 10^10, CHIDIST returns the #NUM! error value."

Matched
=CHIDIST("abc",A3) A non-numeric x argument #VALUE! #VALUE!
Provenance

Excel documents: "If either argument is nonnumeric, CHIDIST returns the #VALUE! error value."

Matched

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=ROUND(CHIDIST(A2,A3),7) Microsoft's documented worked example: right-tailed chi-squared probability at x=18.307 with 10 degrees of freedom 0.0500006 0.0500006
Provenance

Microsoft's page publishes this example's result as 0.0500006. Independently derived from the documented definition CHIDIST = P(X > x) for a chi-squared random variable: scipy.stats.chi2.sf(18.307, 10) = 0.05000058909139812 -> 0.0500006 at 7 dp

Matched
=ROUND(CHIDIST(A2,10.9),7) A non-integer degrees-of-freedom argument, which the documentation says is truncated 0.0500006 0.0500006
Provenance

Excel documents "If deg_freedom is not an integer, it is truncated", so 10.9 must behave exactly as 10 and return the documented 0.0500006. Independently checked that this discriminates: a genuine 10.9 degrees of freedom would give chi2.sf(18.307, 10.9) = 0.071937

Matched
=ROUND(CHIDIST(3,1),7) A second point on the distribution, at 1 degree of freedom 0.0832645 0.0832645
Provenance

Derived from the same documented right-tail definition: scipy.stats.chi2.sf(3, 1) = 0.08326451666355042 -> 0.0832645 at 7 dp. Equivalently 2*(1 - Phi(sqrt(3))), since a chi-squared variate with 1 degree of freedom is the square of a standard normal

Matched
=CHIDIST(-1,A3) A negative x value 1 #NUM!
Provenance

Excel documents: "If x is negative, CHIDIST returns the #NUM! error value."

Mismatch
=CHIDIST(A2,0) Zero degrees of freedom #VALUE! #NUM!
Provenance

Excel documents: "If deg_freedom < 1 or deg_freedom > 10^10, CHIDIST returns the #NUM! error value."

Mismatch
=CHIDIST("abc",A3) A non-numeric x argument #VALUE! #VALUE!
Provenance

Excel documents: "If either argument is nonnumeric, CHIDIST returns the #VALUE! error value."

Matched

Docs & syntax