# HYPGEOM.DIST Function

> Calculate the hypergeometric distribution for samples drawn without replacement with HYPGEOM.DIST in TX Sheet Control: cumulative flag and #NUM! errors.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > HYPGEOM.DIST Function
- **276 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/hypgeom-dist/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/hypgeom-dist/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/hypgeom-dist/llms-full.txt

---

Return the hypergeometric distribution: the probability of a number of successes in a sample drawn without replacement. `sample_s` is the number of successes in the sample, `number_sample` the size of the sample, `population_s` the number of successes in the population and `number_pop` the size of the population. `cumulative` TRUE returns the cumulative probability and FALSE or omitted the probability of exactly `sample_s`. A negative `sample_s`, more successes than the sample size, or a sample larger than the population returns `#NUM!`.

### Syntax

```text
HYPGEOM.DIST(sample_s, number_sample, population_s, number_pop, cumulative)
```

Category: Statistics. Minimum arguments: 4. Maximum arguments: 5.

Available for supported offline calculation.

### Examples

```text
=HYPGEOM.DIST(1,2,3,5,FALSE)
```

The formula returns 0.6, the probability of exactly 1 success when 2 items are drawn from 5 that include 3 successes.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [HYPERLINK Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/hyperlink/llms-full.txt)
- **Next:** [HYPGEOMDIST Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/hypgeomdist/llms-full.txt)
