← All functions

PROB

Quirk found

Category: Statistical · Last tested 2026-09-01

Real compatibility results for the PROB 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) Quirk found
Google SheetsYes Yes (Drive import, 2026-08-31) Quirk found
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 PROB’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 PROB working in LibreOffice?

PROB 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.

Why isn’t PROB working in Google Sheets?

PROB runs in Google Sheets, but our executed cases show it does not match Excel’s documented behavior on every input (the failing cases are listed on this page). If a formula that behaves one way in Excel gives you a different answer in Sheets, compare your usage against those cases 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(PROB(A3:A6,B3:B6,2),12) Microsoft's documented example with only a lower limit 0.1 0.1
Provenance

Microsoft publishes =PROB(A3:A6,B3:B6,2) = 0.1 for the values 0, 1, 2, 3 with probabilities 0.2, 0.3, 0.1, 0.4, and documents the rule it exercises: "If upper_limit is omitted, PROB returns the probability of being equal to lower_limit." DERIVATION: with no upper limit the answer is simply the probability attached to the value 2, which is 0.1 -- a lookup, not a calculation. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/prob-function (the /en-us/office/<name>-function-<guid> path was returning Microsoft's 'Sorry, the page you're looking for can't be found' body throughout this batch, and the working path serves an 87 KB stub about half the time, so pages were fetched with retries until the payload exceeded 150 KB).

Matched
=ROUND(PROB(A3:A6,B3:B6,1,3),12) Microsoft's documented example with both limits 0.8 0.8
Provenance

Microsoft publishes =PROB(A3:A6,B3:B6,1,3) = 0.8. DERIVATION: the values 1, 2 and 3 all lie in the closed interval [1,3], so the answer is 0.3 + 0.1 + 0.4 = 0.8 exactly. Note that both endpoints are INCLUDED -- OpenFormula 1.3 section 6.18.63 writes the same rule as an indicator over Start <= d_i <= End -- so an engine using a half-open interval would return 0.4 here.

Matched
=ROUND(PROB(A3:A6,B3:B6,0,3),12) Limits spanning the whole sample 1 1
Provenance

Every value lies in [0,3], so the answer is the sum of all four probabilities, which the page requires to be 1. Structural: it pins both endpoints at once and needs no derived constant.

Matched
=PROB(A3:A6,C3:C6,2) A probability column that sums to 0.9, which the page excludes #NUM! #NUM!
Provenance

Microsoft documents: "If the sum of the values in prob_range is not equal to 1, PROB returns the #NUM! error value." The C column sums to 0.9. OpenFormula 1.3 section 6.18.63 states the same constraint.

Matched
=PROB(A3:A6,D3:D6,2) A probability greater than 1 among otherwise valid entries 0.1 #NUM!
Provenance

Microsoft documents: "If any value in prob_range <= 0 or if any value in prob_range > 1, PROB returns the #NUM! error value." The D column is deliberately built to sum to exactly 1 (1.5 + 0.3 + 0.1 - 0.9 = 1.0) so that the OTHER documented constraint is satisfied and only the per-value range rule can fire -- otherwise a passing result would not say which rule the engine enforced.

Mismatch
=PROB(A3:A6,B3:B5,2) x_range and prob_range of different lengths #N/A #N/A
Provenance

Microsoft documents: "If x_range and prob_range contain a different number of data points, PROB returns the #N/A error value." Note the code: #N/A for a shape mismatch, #NUM! for a bad probability -- two different errors on the same page, so they are asserted separately.

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(PROB(A3:A6,B3:B6,2),12) Microsoft's documented example with only a lower limit 0.1 0.1
Provenance

Microsoft publishes =PROB(A3:A6,B3:B6,2) = 0.1 for the values 0, 1, 2, 3 with probabilities 0.2, 0.3, 0.1, 0.4, and documents the rule it exercises: "If upper_limit is omitted, PROB returns the probability of being equal to lower_limit." DERIVATION: with no upper limit the answer is simply the probability attached to the value 2, which is 0.1 -- a lookup, not a calculation. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/prob-function (the /en-us/office/<name>-function-<guid> path was returning Microsoft's 'Sorry, the page you're looking for can't be found' body throughout this batch, and the working path serves an 87 KB stub about half the time, so pages were fetched with retries until the payload exceeded 150 KB).

Matched
=ROUND(PROB(A3:A6,B3:B6,1,3),12) Microsoft's documented example with both limits 0.8 0.8
Provenance

Microsoft publishes =PROB(A3:A6,B3:B6,1,3) = 0.8. DERIVATION: the values 1, 2 and 3 all lie in the closed interval [1,3], so the answer is 0.3 + 0.1 + 0.4 = 0.8 exactly. Note that both endpoints are INCLUDED -- OpenFormula 1.3 section 6.18.63 writes the same rule as an indicator over Start <= d_i <= End -- so an engine using a half-open interval would return 0.4 here.

Matched
=ROUND(PROB(A3:A6,B3:B6,0,3),12) Limits spanning the whole sample 1 1
Provenance

Every value lies in [0,3], so the answer is the sum of all four probabilities, which the page requires to be 1. Structural: it pins both endpoints at once and needs no derived constant.

Matched
=PROB(A3:A6,C3:C6,2) A probability column that sums to 0.9, which the page excludes #VALUE! #NUM!
Provenance

Microsoft documents: "If the sum of the values in prob_range is not equal to 1, PROB returns the #NUM! error value." The C column sums to 0.9. OpenFormula 1.3 section 6.18.63 states the same constraint.

Mismatch
=PROB(A3:A6,D3:D6,2) A probability greater than 1 among otherwise valid entries 0.1 #NUM!
Provenance

Microsoft documents: "If any value in prob_range <= 0 or if any value in prob_range > 1, PROB returns the #NUM! error value." The D column is deliberately built to sum to exactly 1 (1.5 + 0.3 + 0.1 - 0.9 = 1.0) so that the OTHER documented constraint is satisfied and only the per-value range rule can fire -- otherwise a passing result would not say which rule the engine enforced.

Mismatch
=PROB(A3:A6,B3:B5,2) x_range and prob_range of different lengths #N/A #N/A
Provenance

Microsoft documents: "If x_range and prob_range contain a different number of data points, PROB returns the #N/A error value." Note the code: #N/A for a shape mismatch, #NUM! for a bad probability -- two different errors on the same page, so they are asserted separately.

Matched

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=ROUND(PROB(A3:A6,B3:B6,2),12) Microsoft's documented example with only a lower limit 0.1 0.1
Provenance

Microsoft publishes =PROB(A3:A6,B3:B6,2) = 0.1 for the values 0, 1, 2, 3 with probabilities 0.2, 0.3, 0.1, 0.4, and documents the rule it exercises: "If upper_limit is omitted, PROB returns the probability of being equal to lower_limit." DERIVATION: with no upper limit the answer is simply the probability attached to the value 2, which is 0.1 -- a lookup, not a calculation. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/prob-function (the /en-us/office/<name>-function-<guid> path was returning Microsoft's 'Sorry, the page you're looking for can't be found' body throughout this batch, and the working path serves an 87 KB stub about half the time, so pages were fetched with retries until the payload exceeded 150 KB).

Matched
=ROUND(PROB(A3:A6,B3:B6,1,3),12) Microsoft's documented example with both limits 0.8 0.8
Provenance

Microsoft publishes =PROB(A3:A6,B3:B6,1,3) = 0.8. DERIVATION: the values 1, 2 and 3 all lie in the closed interval [1,3], so the answer is 0.3 + 0.1 + 0.4 = 0.8 exactly. Note that both endpoints are INCLUDED -- OpenFormula 1.3 section 6.18.63 writes the same rule as an indicator over Start <= d_i <= End -- so an engine using a half-open interval would return 0.4 here.

Matched
=ROUND(PROB(A3:A6,B3:B6,0,3),12) Limits spanning the whole sample 1 1
Provenance

Every value lies in [0,3], so the answer is the sum of all four probabilities, which the page requires to be 1. Structural: it pins both endpoints at once and needs no derived constant.

Matched
=PROB(A3:A6,C3:C6,2) A probability column that sums to 0.9, which the page excludes #VALUE! #NUM!
Provenance

Microsoft documents: "If the sum of the values in prob_range is not equal to 1, PROB returns the #NUM! error value." The C column sums to 0.9. OpenFormula 1.3 section 6.18.63 states the same constraint.

Mismatch
=PROB(A3:A6,D3:D6,2) A probability greater than 1 among otherwise valid entries #VALUE! #NUM!
Provenance

Microsoft documents: "If any value in prob_range <= 0 or if any value in prob_range > 1, PROB returns the #NUM! error value." The D column is deliberately built to sum to exactly 1 (1.5 + 0.3 + 0.1 - 0.9 = 1.0) so that the OTHER documented constraint is satisfied and only the per-value range rule can fire -- otherwise a passing result would not say which rule the engine enforced.

Mismatch
=PROB(A3:A6,B3:B5,2) x_range and prob_range of different lengths #N/A #N/A
Provenance

Microsoft documents: "If x_range and prob_range contain a different number of data points, PROB returns the #N/A error value." Note the code: #N/A for a shape mismatch, #NUM! for a bad probability -- two different errors on the same page, so they are asserted separately.

Matched

Docs & syntax

Where PROB behaves differently