# COMBINA Function

> Calculate the number of combinations with repetitions with the COMBINA formula function of TX Sheet Control: arguments, truncation and the #NUM! error.

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

---

Return the number of combinations of a given number of items, with repetitions. `number` is the number of items and `number_chosen` the number of items in each combination, which may be greater than `number` because an item can be chosen more than once. The order of the items doesn't matter, and fractions are truncated to integers. A negative argument or a `number` of 0 returns `#NUM!`.

### Syntax

```text
COMBINA(number, number_chosen)
```

Category: Statistics. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

### Examples

```text
=COMBINA(5,2)
```

The formula returns 15, the number of ways to choose 2 of 5 items when an item can be chosen twice.

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:** [COMBIN Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/combin/llms-full.txt)
- **Next:** [COMPLEX Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/complex/llms-full.txt)
