# COUPNUM Function

> Count the coupons payable between the settlement and the maturity date with COUPNUM in TX Sheet Control: partial periods, frequency, basis and errors.

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

---

Return the number of coupons payable between the settlement date and the maturity date. A partial coupon period counts as a whole coupon. `settlement` is the settlement date and `maturity` the maturity date of the security, and `frequency` is the number of coupon payments per year: 1 (annual), 2 (semiannual) or 4 (quarterly). `basis` selects the day count convention: 0 (US 30/360, the default), 1 (actual/actual), 2 (actual/360), 3 (actual/365) or 4 (European 30/360). A settlement date on or after the maturity date, or another frequency or basis, returns `#NUM!`.

### Syntax

```text
COUPNUM(settlement, maturity, frequency, basis)
```

Category: Financial. Minimum arguments: 3. Maximum arguments: 4.

Available for supported offline calculation.

### Examples

```text
=COUPNUM(DATE(2026,1,1),DATE(2028,1,1),2)
```

The formula returns 4, two semiannual coupons in each of two years.

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:** [COUPNCD Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/coupncd/llms-full.txt)
- **Next:** [COUPPCD Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/couppcd/llms-full.txt)
