# MAXIFS

stats · from excel · excel: not yet compared · sheets: not yet compared

returns largest value matching conditions

## signature

```
MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2…], [criteria2…])
```

returns: `number`

## arguments

- max_range: range — required
- criteria_range1: range — required
- criteria1: any — required
- criteria_range2: range — optional, repeatable
- criteria2: any — optional, repeatable

## examples

formula and result, asserted in the engine test suite.

| formula | result | with |
| --- | --- | --- |
| `=MAXIFS(B1:B3, A1:A3, ">15")` | `6` | B1=2, B2=4, B3=6, A1=10, A2=20, A3=30 |

## related

- [AVEDEV](https://deepcalc.com/functions/avedev.md) — average of absolute deviations from the mean
- [AVERAGE.WEIGHTED](https://deepcalc.com/functions/average-weighted.md) — average of values weighted by a second range
- [AVERAGEA](https://deepcalc.com/functions/averagea.md) — averages values including text and logicals
- [AVERAGEIF](https://deepcalc.com/functions/averageif.md) — averages cells that match a condition
- [AVERAGEIFS](https://deepcalc.com/functions/averageifs.md) — averages cells matching multiple conditions
- [BETA.DIST](https://deepcalc.com/functions/beta-dist.md) — beta distribution
- [BETA.INV](https://deepcalc.com/functions/beta-inv.md) — inverse of the beta distribution
- [BETADIST](https://deepcalc.com/functions/betadist.md) — legacy form of BETA.DIST (cumulative)

## navigate

- [all stats functions](https://deepcalc.com/functions/stats-functions.md)
- [function index](https://deepcalc.com/functions.md) — all 600 functions
- [error values](https://deepcalc.com/errors.md) · [concepts](https://deepcalc.com/concepts.md) · [limits](https://deepcalc.com/limits.md)
- [everything in one file](https://deepcalc.com/llms-full.txt)

source: https://deepcalc.com/functions/maxifs