Practice free

PROB function

PROB adds up probabilities from a custom discrete distribution and returns the chance that an outcome falls in a range. An example is the chance a project takes 2 or 3 weeks.

Example

Read it as a sentence: add up the probabilities in AL1:AL4 for the values in AK1:AK4 that fall between 2 and 3, which gives 0.5.

Practice this in the app

Syntax

PROB(x_range, prob_range, lower_limit, [upper_limit])

Arguments in [square brackets] are optional.

x_range (required)
The possible outcomes.
prob_range (required)
Probability of each outcome; must total 1.
lower_limit (required)
Lower bound of the outcomes to include.
upper_limit (optional)
Upper bound; if omitted only lower_limit itself is counted.

Returns: The probability that the outcome falls in the range.

What Excel actually returns

Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.

FormulaExcel showsCase
=PROB({1,2},{-0.5,1.5},1) -0.5 Negative probability
=PROB({1;2;3;4},{0.1;0.2;0.3;0.4},2,3) 0.5 Array constants
=PROB(Data!AK1:AK4,Data!AL1:AL4,2,3) 0.5 Working example
=PROB(Data!AK1:AK4,Data!AL1:AL4,2) 0.2 Lower only
=PROB(Data!AK1:AK4,Data!AL1:AL4,3,2) 0 Lower > upper
=PROB(Data!AK1:AK4,Data!AL1:AL4,10) 0 No value in range
=PROB(Data!AK1:AK4,Data!AM1:AM4,2,3) #NUM! Probs not summing to 1
=PROB(Data!AK1:AK4,Data!AL1:AL3,2,3) #N/A Different sizes

The Data sheet these formulas read

A cell that starts with = holds that formula.

Watch out for

  • prob_range must sum to 1 or you get #NUM!.
  • Both bounds are inclusive.

Where it works

Excel
PROB is in every version of Excel from 2007 on.
Google Sheets
Same name, same behaviour for everyday use.

Part of Statistical functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .