Statistical
Excel 2010
◉ 47 views
=HYPGEOM.DIST()
Returns the probability of a given number of sample successes, given the sample size, population successes, and population size.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=HYPGEOM.DIST(sample_s,number_sample,population_s,number_pop,cumulative)
Hover argument names in the table for details.
Output typeStatistical
Popularity5 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =HYPGEOM.DIST() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
sample_s |
Number | Required | The number of successes in the sample. |
number_sample |
Number | Required | The size of the sample. |
population_s |
Number | Required | The number of successes in the population. |
number_pop |
Number | Required | The population size. |
cumulative |
Logical | Required | A logical value that determines the form of the function. If cumulative is TRUE, then HYPGEOM.DIST returns the cumulative distribution function; if FALSE, it returns the probability mass function. |
▣ Examples
▦ Data
| Cell | Value | Description |
|---|---|---|
A2 |
1 | Number of successes in the sample |
A3 |
4 | Sample size |
A4 |
8 | Number of successes in the population |
A5 |
20 | Population size |
A6 |
1 | Number of successes in the sample |
A7 |
4 | Sample size |
A8 |
8 | Number of successes in the population |
A9 |
20 | Population size |
Cumulative hypergeometric distribution function, for sample and population in cells A2 through A5.
=HYPGEOM.DIST(A2,A3,A4,A5,TRUE)
Result:
0.4654
Probability hypergeometric distribution function, for sample and in cells A2 through A5.
=HYPGEOM.DIST(A2,A3,A4,A5,FALSE)
Result:
0.3633
§ Remarks
- All arguments are truncated to integers.
- If any argument is nonnumeric, HYPGEOM.DIST returns the #VALUE! error value.
- If sample_s < 0 or sample_s is greater than the lesser of number_sample or population_s, HYPGEOM.DIST returns the #NUM! error value.
- If sample_s is less than the larger of 0 or (number_sample - number_population + population_s), HYPGEOM.DIST returns the #NUM! error value.
- If number_sample ≤ 0 or number_sample > number_population, HYPGEOM.DIST returns the #NUM! error value.
- If population_s ≤ 0 or population_s > number_population, HYPGEOM.DIST returns the #NUM! error value.
- If number_pop ≤ 0, HYPGEOM.DIST returns the #NUM! error value.
- The equation for the hypergeometric distribution is: where: x = sample_s n = number_sample M = population_s N = number_pop HYPGEOM.DIST is used in sampling without replacement from a finite population.
✦ Tips
- All arguments are truncated to integers.
- The equation for the hypergeometric distribution is: where: x = sample_s n = number_sample M = population_s N = number_pop HYPGEOM.DIST is used in sampling without replacement from a finite population.
⚠ Common Errors
#VALUE!
If any argument is nonnumeric, HYPGEOM.DIST returns the #VALUE! error value.
Fix: برای همه آرگومانها مقادیر عددی وارد کنید.
#NUM!
If sample_s < 0 or sample_s is greater than the lesser of number_sample or population_s, HYPGEOM.DIST returns the #NUM! error value. If sample_s is less than the larger of 0 or (number_sample - number_population + population_s), HYPGEOM.DIST returns the #NUM! error value. If number_sample ≤ 0 or number_sample > number_population, HYPGEOM.DIST returns the #NUM! error value. If population_s ≤ 0 or population_s > number_population, HYPGEOM.DIST returns the #NUM! error value. If number_pop ≤ 0, HYPGEOM.DIST returns the #NUM! error value.
Fix: Correct the input value
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!