← All functions

CRITBINOM

Quirk found

Category: Compatibility · Last tested 2026-09-01

Real compatibility results for the CRITBINOM 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 CRITBINOM’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 CRITBINOM working in LibreOffice?

CRITBINOM 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
=CRITBINOM(A2,A3,A4) Microsoft's documented worked example: smallest k whose cumulative binomial probability over 6 fair trials reaches 0.75 4 4
Provenance

Microsoft's page publishes this example's result as 4. Independently derived by summing the binomial probabilities explicitly: with trials 6 and probability 0.5 the cumulative sums are 0.015625, 0.109375, 0.34375, 0.65625, 0.890625, 0.984375, 1.0 for k = 0..6. The first sum that is >= the criterion 0.75 is 0.890625 at k = 4, which is the documented answer

Matched
=CRITBINOM(A2,A3,0.9) The same trials and probability at a stricter criterion of 0.9 5 5
Provenance

From the same explicit cumulative sums, the first value >= 0.9 is 0.984375 at k = 5 (the cumulative sum at k = 4 is 0.890625, just short). This case discriminates the alpha argument and pins the >= comparison direction

Matched
=CRITBINOM(6.9,A3,0.6) A non-integer number of trials, which the documentation says is truncated 3 3
Provenance

Excel documents "If trials is not an integer, it is truncated", so 6.9 must behave exactly as 6. With 6 trials the cumulative sums are 0.015625, 0.109375, 0.34375, 0.65625, ...; the first one >= the criterion 0.6 is 0.65625 at k = 3. The criterion 0.6 was chosen precisely because it discriminates: with 7 trials the sums are 0.0078125, 0.0625, 0.2265625, 0.5, 0.7734375, ... and the first >= 0.6 is at k = 4, so an engine that rounded 6.9 up to 7 instead of truncating would return 4 here. (At the page's own criterion of 0.75 both 6 and 7 trials give 4, which is why this case does not reuse it)

Matched
=CRITBINOM(A2,0,A4) A success probability of exactly 0 #NUM! #NUM!
Provenance

Excel documents: "If probability_s is <= 0 or probability_s => 1, CRITBINOM returns the #NUM! error value." EXECUTED RESULT: all four LibreOffice builds return 0 rather than the documented error -- a plausible-looking answer for an input the documentation excludes. The same silent substitution was already recorded for CRITBINOM's modern replacement BINOM.INV elsewhere in this corpus, so it is the function family's behaviour and not a one-off

Matched
=CRITBINOM(A2,A3,1) A criterion value of exactly 1 #NUM! #NUM!
Provenance

Excel documents: "If alpha <= 0 or alpha => 1, CRITBINOM returns the #NUM! error value." EXECUTED RESULT: all four LibreOffice builds return 6 -- the trial count itself, since no cumulative probability strictly exceeds a criterion of exactly 1 until the last one -- rather than the documented error. As with the probability_s case, the modern BINOM.INV shows the same behaviour elsewhere in this corpus

Matched
=CRITBINOM(-1,A3,A4) A negative number of trials #NUM! #NUM!
Provenance

Excel documents: "If trials < 0, CRITBINOM returns the #NUM! 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
=CRITBINOM(A2,A3,A4) Microsoft's documented worked example: smallest k whose cumulative binomial probability over 6 fair trials reaches 0.75 4 4
Provenance

Microsoft's page publishes this example's result as 4. Independently derived by summing the binomial probabilities explicitly: with trials 6 and probability 0.5 the cumulative sums are 0.015625, 0.109375, 0.34375, 0.65625, 0.890625, 0.984375, 1.0 for k = 0..6. The first sum that is >= the criterion 0.75 is 0.890625 at k = 4, which is the documented answer

Matched
=CRITBINOM(A2,A3,0.9) The same trials and probability at a stricter criterion of 0.9 5 5
Provenance

From the same explicit cumulative sums, the first value >= 0.9 is 0.984375 at k = 5 (the cumulative sum at k = 4 is 0.890625, just short). This case discriminates the alpha argument and pins the >= comparison direction

Matched
=CRITBINOM(6.9,A3,0.6) A non-integer number of trials, which the documentation says is truncated 3 3
Provenance

Excel documents "If trials is not an integer, it is truncated", so 6.9 must behave exactly as 6. With 6 trials the cumulative sums are 0.015625, 0.109375, 0.34375, 0.65625, ...; the first one >= the criterion 0.6 is 0.65625 at k = 3. The criterion 0.6 was chosen precisely because it discriminates: with 7 trials the sums are 0.0078125, 0.0625, 0.2265625, 0.5, 0.7734375, ... and the first >= 0.6 is at k = 4, so an engine that rounded 6.9 up to 7 instead of truncating would return 4 here. (At the page's own criterion of 0.75 both 6 and 7 trials give 4, which is why this case does not reuse it)

Matched
=CRITBINOM(A2,0,A4) A success probability of exactly 0 #NUM! #NUM!
Provenance

Excel documents: "If probability_s is <= 0 or probability_s => 1, CRITBINOM returns the #NUM! error value." EXECUTED RESULT: all four LibreOffice builds return 0 rather than the documented error -- a plausible-looking answer for an input the documentation excludes. The same silent substitution was already recorded for CRITBINOM's modern replacement BINOM.INV elsewhere in this corpus, so it is the function family's behaviour and not a one-off

Matched
=CRITBINOM(A2,A3,1) A criterion value of exactly 1 #NUM! #NUM!
Provenance

Excel documents: "If alpha <= 0 or alpha => 1, CRITBINOM returns the #NUM! error value." EXECUTED RESULT: all four LibreOffice builds return 6 -- the trial count itself, since no cumulative probability strictly exceeds a criterion of exactly 1 until the last one -- rather than the documented error. As with the probability_s case, the modern BINOM.INV shows the same behaviour elsewhere in this corpus

Matched
=CRITBINOM(-1,A3,A4) A negative number of trials #NUM! #NUM!
Provenance

Excel documents: "If trials < 0, CRITBINOM returns the #NUM! error value."

Matched

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=CRITBINOM(A2,A3,A4) Microsoft's documented worked example: smallest k whose cumulative binomial probability over 6 fair trials reaches 0.75 4 4
Provenance

Microsoft's page publishes this example's result as 4. Independently derived by summing the binomial probabilities explicitly: with trials 6 and probability 0.5 the cumulative sums are 0.015625, 0.109375, 0.34375, 0.65625, 0.890625, 0.984375, 1.0 for k = 0..6. The first sum that is >= the criterion 0.75 is 0.890625 at k = 4, which is the documented answer

Matched
=CRITBINOM(A2,A3,0.9) The same trials and probability at a stricter criterion of 0.9 5 5
Provenance

From the same explicit cumulative sums, the first value >= 0.9 is 0.984375 at k = 5 (the cumulative sum at k = 4 is 0.890625, just short). This case discriminates the alpha argument and pins the >= comparison direction

Matched
=CRITBINOM(6.9,A3,0.6) A non-integer number of trials, which the documentation says is truncated 3 3
Provenance

Excel documents "If trials is not an integer, it is truncated", so 6.9 must behave exactly as 6. With 6 trials the cumulative sums are 0.015625, 0.109375, 0.34375, 0.65625, ...; the first one >= the criterion 0.6 is 0.65625 at k = 3. The criterion 0.6 was chosen precisely because it discriminates: with 7 trials the sums are 0.0078125, 0.0625, 0.2265625, 0.5, 0.7734375, ... and the first >= 0.6 is at k = 4, so an engine that rounded 6.9 up to 7 instead of truncating would return 4 here. (At the page's own criterion of 0.75 both 6 and 7 trials give 4, which is why this case does not reuse it)

Matched
=CRITBINOM(A2,0,A4) A success probability of exactly 0 0 #NUM!
Provenance

Excel documents: "If probability_s is <= 0 or probability_s => 1, CRITBINOM returns the #NUM! error value." EXECUTED RESULT: all four LibreOffice builds return 0 rather than the documented error -- a plausible-looking answer for an input the documentation excludes. The same silent substitution was already recorded for CRITBINOM's modern replacement BINOM.INV elsewhere in this corpus, so it is the function family's behaviour and not a one-off

Mismatch
=CRITBINOM(A2,A3,1) A criterion value of exactly 1 6 #NUM!
Provenance

Excel documents: "If alpha <= 0 or alpha => 1, CRITBINOM returns the #NUM! error value." EXECUTED RESULT: all four LibreOffice builds return 6 -- the trial count itself, since no cumulative probability strictly exceeds a criterion of exactly 1 until the last one -- rather than the documented error. As with the probability_s case, the modern BINOM.INV shows the same behaviour elsewhere in this corpus

Mismatch
=CRITBINOM(-1,A3,A4) A negative number of trials #VALUE! #NUM!
Provenance

Excel documents: "If trials < 0, CRITBINOM returns the #NUM! error value."

Mismatch

Docs & syntax