The Excel HYPGEOMDIST function returns the hypergeometric distribution — the probability of a given number of successes when sampling without replacement. It is a legacy function; Microsoft replaced it in Excel 2010 with HYPGEOM.DIST, which adds a cumulative option.
Syntax
| Argument | Description | |
|---|---|---|
sample_s | Required | The number of successes in the sample. |
number_sample | Required | The size of the sample. |
population_s | Required | The number of successes in the population. |
number_population | Required | The size of the population. |
How to use it
HYPGEOMDIST models drawing without replacement — for example, the chance of pulling a certain number of defective parts from a finite batch. Unlike the modern function, the legacy form has no cumulative argument: it always returns the probability of exactly sample_s successes.
Here we draw a sample of 4 from a population of 20 that contains 8 successes. All four arguments must be non-negative integers, and each count cannot exceed its container (e.g. sample_s ≤ number_sample).
Use HYPGEOM.DIST in Excel 2010 and later. The modern HYPGEOM.DIST adds a fifth cumulative argument so you can get a running total, not just the exact-count probability. HYPGEOMDIST is kept only for backward compatibility.
Try it: interactive demo
Pick a HYPGEOMDIST example to see the formula and its result.
Practice workbook
Frequently asked questions
Should I use HYPGEOMDIST or HYPGEOM.DIST?
HYPGEOM.DIST in Excel 2010 or later. It accepts the same four counts plus a cumulative flag; HYPGEOMDIST is retained only so older workbooks keep working.Why does the legacy HYPGEOMDIST have no cumulative argument?
sample_s successes. To get a cumulative probability you must sum several calls, or switch to HYPGEOM.DIST and set cumulative to TRUE.How is the hypergeometric distribution different from the binomial?
What are the argument constraints?
population_s cannot exceed number_population — or the function returns an error.Master functions like this in one day
This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class