# AVERAGEIFS Function

> Average the numbers that meet several conditions with AVERAGEIFS in TX Sheet Control: result range, pairs of criteria ranges and criteria, #VALUE! and #DIV/0!.

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

---

Return the average of the numbers that meet every one of several conditions. `result_range` holds the numbers to average, and each pair of `criteria_range` and `criteria` adds a condition, such as `">1"` or a value to match. All criteria ranges must have the size of `result_range`, otherwise AVERAGEIFS returns `#VALUE!`; when no cell meets all conditions, it returns `#DIV/0!`.

### Syntax

```text
AVERAGEIFS(result_range, criteria_range1, criteria1)
```

Category: Conditional. Minimum arguments: 3. Maximum arguments: 255.

Available for supported offline calculation.

### Examples

```text
=AVERAGEIFS(A1:A5,A1:A5,">1")
```

With the numbers 1 to 5 in A1:A5, the formula returns 3.5, the average of 2, 3, 4 and 5.

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:** [AVERAGEIF Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/averageif/llms-full.txt)
- **Next:** [BAHTTEXT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/bahttext/llms-full.txt)
