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])| Argument | What it means | |
|---|---|---|
x_range | Required | The possible outcomes (numbers). |
prob_range | Required | The probability of each outcome; each 0–1 and together summing to 1. |
lower_limit | Required | The lower bound of the outcomes to include. |
upper_limit | Optional | The 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Units sold | Probability | ||
| 2 | 0 | 0.1 | 0.65 | |
| 3 | 1 | 0.25 | ||
| 4 | 2 | 0.3 | ||
| 5 | 3 | 0.2 | ||
| 6 | 4 | 0.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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Units sold | Probability | ||
| 2 | 0 | 0.1 | 0.2 | |
| 3 | 1 | 0.25 | ||
| 4 | 2 | 0.3 | ||
| 5 | 3 | 0.2 | ||
| 6 | 4 | 0.15 |
Result: 0.2
With no upper limit PROB returns the probability of exactly 3 units, 0.2.
3Probability of at least one sale
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Units sold | Probability | ||
| 2 | 0 | 0.1 | 0.9 | |
| 3 | 1 | 0.25 | ||
| 4 | 2 | 0.3 | ||
| 5 | 3 | 0.2 | ||
| 6 | 4 | 0.15 |
Result: 0.9
Everything except zero sales: 1 − 0.1 = 0.9 (90%).
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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/A | x_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.
| Language | Function name |
|---|---|
| Danish | SANDSYNLIGHED |
| Dutch | KANS |
| Finnish | TODENNÄKÖISYYS |
| French | PROBABILITE |
| German | WAHRSCHBEREICH |
| Hungarian | VALÓSZÍNŰSÉG |
| Italian | PROBABILITÀ |
| Norwegian (Bokmål) | SANNSYNLIG |
| Polish | PRAWDPD |
| Russian | ВЕРОЯТНОСТЬ |
| Spanish | PROBABILIDAD |
| Swedish | SANNOLIKHET |
| Turkish | OLASILIK |