Google Sheets PROB Function: How to Use It Right
In this article
The PROB function in Google Sheets calculates the probability that a value from a set falls between two limits, using a matching set of known probabilities. The syntax is =PROB(data, probabilities, low_limit, [high_limit]), and it returns 0 when the values don't meet the function's requirements. To use it, you need a column of values and a parallel column of probabilities that add up to exactly 1.
What You'll Need
- A Google account and a spreadsheet in Google Sheets
- A range of numeric values (the data)
- A parallel range of probabilities, one per value, with the same number of cells
- Probabilities that are each between 0 and 1 and sum to exactly 1
Step-by-Step
- Set up your data. In column A, list the possible values (for example A2:A6 containing 1, 2, 3, 4, 5).
- In column B, next to each value, enter its probability (for example B2:B6 containing 0.1, 0.2, 0.4, 0.2, 0.1). These must add up to 1 exactly.
- Optionally verify the total in an empty cell with
=SUM(B2:B6). If it shows anything other than 1, fix your probabilities before continuing, because PROB returns 0 for invalid probability sets. - Click the cell where you want the result.
- Type the formula, replacing ranges with your own:
=PROB(A2:A6, B2:B6, 3). This returns the probability of exactly the value 3 (here, 0.4). - To get the probability of a range of values, add the optional fourth argument:
=PROB(A2:A6, B2:B6, 2, 4). This sums the probabilities of 2, 3 and 4 (here, 0.8). - Press Enter. The result is a decimal between 0 and 1. To show it as a percentage, select the cell and click Format > Number > Percent (menu labels can vary slightly between versions).
Common Mistakes
- Probabilities not summing to 1. If the sum is 0.99 or 1.01, PROB returns 0 instead of an error, which is easy to miss. Always check the total with SUM first.
- Ranges of different sizes. The data range and probability range must contain the same number of cells, or you'll get a #N/A error.
- Probabilities outside 0–1. Any value below 0 or above 1 makes the result invalid.
- Expecting it to work like a statistics distribution. PROB doesn't compute normal or binomial distributions from raw counts; it only works with a discrete set of values and their known probabilities.
- Duplicate values in the data range. PROB expects distinct values; duplicates give misleading results.
- Forgetting the high_limit. Without it, PROB matches only the exact low_limit value, so a typo in that single number returns 0.
Tips
- Reference the limits from cells (for example
=PROB(A2:A6, B2:B6, E1, E2)) so you can change the range you're testing without editing the formula. - Keep your probability table on the same sheet or a clearly named tab so it stays easy to audit.
- PROB is handy for discrete outcomes such as dice rolls, survey answer distributions, or weighted scoring models.
- If you need probabilities from a theoretical distribution instead, look at NORM.DIST, BINOM.DIST or POISSON.DIST rather than PROB.
Troubleshooting
- Result is 0 unexpectedly: Check
=SUM(probability_range)equals exactly 1, confirm your low_limit (and high_limit) values actually appear in the data range, and make sure no probability is negative or greater than 1. - #N/A error: The data and probability ranges have different numbers of cells. Make both ranges the same size.
- #VALUE! error: One of the arguments contains text or a non-numeric value. Clear or re-enter the offending cells.
- #NAME? error: The function name is misspelled (it must be
PROB), or your locale uses semicolons instead of commas as argument separators — try=PROB(A2:A6; B2:B6; 3). - Formula won't calculate: Make sure the cell isn't formatted as plain text. Select it, then choose Format > Number > Number and re-enter the formula.
Frequently Asked Questions
What does the PROB function do in Google Sheets?
It returns the probability that a value drawn from a set with known probabilities falls between a lower and an optional upper limit.
Is the high_limit argument required?
No. If you omit it, PROB returns the probability of exactly the low_limit value.
Can PROB use percentages like 20%?
Yes, as long as the cells are formatted as percentages that Sheets stores as decimals (0.2). The key requirement is that all probabilities together total exactly 1.
Does PROB work with text values?
No. Both the data and the probabilities must be numeric, so text entries produce an error.
Why does PROB return 0 instead of an error?
That's by design: if the probabilities don't sum to 1 or fall within 0–1, PROB returns 0 rather than flagging the problem, so double-check your inputs.
Can PROB calculate a normal distribution?
No. Use NORM.DIST for continuous distributions; PROB only handles discrete values with explicitly listed probabilities.