Statistical function

PROB function

Returns the probability that a value lies between two limits, given a table of possible values and their probabilities.

Available in All versions of Excel, including Microsoft 365 and Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

PROB(x_range, prob_range, lower_limit, [upper_limit])
ArgumentWhat it means
x_rangeRequiredThe possible outcomes (numbers).
prob_rangeRequiredThe probability of each outcome; each 0–1 and together summing to 1.
lower_limitRequiredThe lower bound of the outcomes to include.
upper_limitOptionalThe upper bound (inclusive). If omitted, PROB returns the probability of exactly lower_limit.

Returns: The summed probability of all outcomes from lower_limit to upper_limit.

How PROB works

Sometimes you do not have a formula for a distribution, just a table: from past experience, a shop knows the chance of selling 0, 1, 2, 3 or 4 units of an expensive item per day. PROB adds up the probabilities of the outcomes that fall within a range, so you can answer "how likely is it we sell between 2 and 4?" directly from the table.

Both limits are inclusive. Leaving out upper_limit gives the probability of exactly the lower limit. The probabilities must add up to 1 (100%), otherwise Excel returns #NUM!; this protects you from incomplete tables. PROB works the same as a SUMIFS over the probability column, but checks the table's validity for you.

Examples

1Probability of selling 2 to 4 units

D2fx=PROB(A2:A6, B2:B6, 2, 4)
ABCD
1Units soldProbability
200.10.65
310.25
420.3
530.2
640.15

Result: 0.65

0.30 + 0.20 + 0.15 = 0.65: a 65% chance of selling between two and four units on a given day.

2Exactly one value

D2fx=PROB(A2:A6, B2:B6, 3)
ABCD
1Units soldProbability
200.10.2
310.25
420.3
530.2
640.15

Result: 0.2

With no upper limit PROB returns the probability of exactly 3 units, 0.2.

3Probability of at least one sale

D2fx=PROB(A2:A6, B2:B6, 1, 4)
ABCD
1Units soldProbability
200.10.9
310.25
420.3
530.2
640.15

Result: 0.9

Everything except zero sales: 1 − 0.1 = 0.9 (90%).

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 15 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!The probabilities do not add up to 1, a probability is below 0 or above 1.Check the table: =SUM(B2:B6) should be exactly 1.
#N/Ax_range and prob_range have different numbers of cells.Use ranges of the same size.

Tips

  • Rounded probabilities (e.g. three values of 0.333) do not sum to 1; use 1/3 formulas instead.
  • The expected value of the table is =SUMPRODUCT(A2:A6, B2:B6), here 2.05 units per day.

Google Sheets

PROB also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

PROB in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishSANDSYNLIGHED
DutchKANS
FinnishTODENNÄKÖISYYS
FrenchPROBABILITE
GermanWAHRSCHBEREICH
HungarianVALÓSZÍNŰSÉG
ItalianPROBABILITÀ
Norwegian (Bokmål)SANNSYNLIG
PolishPRAWDPD
RussianВЕРОЯТНОСТЬ
SpanishPROBABILIDAD
SwedishSANNOLIKHET
TurkishOLASILIK