# COUNTIFS Function

> Count the rows that meet every one of several conditions with COUNTIFS in TX Sheet Control: criteria pairs, same-size ranges and the #VALUE! error.

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

---

Count the cells that meet every one of several conditions. Each pair of `criteria_range` and `criteria` adds a condition, for up to 127 pairs, and a row counts only when it meets all of them. The criteria work as in [COUNTIF](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/countif/llms-full.txt). All ranges must have the same size; otherwise COUNTIFS returns `#VALUE!`.

### Syntax

```text
COUNTIFS(criteria_range1, criteria1)
```

Category: Conditional. Minimum arguments: 2. Maximum arguments: 254.

Available for supported offline calculation.

### Examples

```text
=COUNTIFS(B4:B6,">15000",C4:C6,">19000")
```

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:** [COUNTIF Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/countif/llms-full.txt)
- **Next:** [COUPDAYBS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/coupdaybs/llms-full.txt)
