# MAXIFS Function

> Return the largest value that meets one or more conditions with MAXIFS in TX Sheet Control: result and criteria ranges, criteria syntax and the 0 result.

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

---

Return the largest number among the cells that meet one or more conditions. `result_range` holds the values, and each pair of `criteria_range1` and `criteria1` sets a condition such as `">1"`, `"North"` or `"<>0"`; a value counts only when every condition is met. When no cell meets the conditions, MAXIFS returns 0. A criteria range of another size than `result_range` returns `#VALUE!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

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

With the values 1, 5, 3, 8 and 2 in A1:A5, the formula returns 8, the largest value greater than 1.

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:** [MAXA Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/maxa/llms-full.txt)
- **Next:** [MDETERM Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/mdeterm/llms-full.txt)
