Syntax
=MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2], [criteria2], ...)Arguments
| Argument | Required | Description |
|---|---|---|
max_range | Required | The cells to take the maximum of |
criteria_range1 | Required | The first range to check |
criteria1 | Required | The condition for the first range |
criteria_range2 | Optional | More ranges |
criteria2 | Optional | More conditions |
How to use MAXIFS
MAXIFS takes 3 required arguments and 2 optional arguments, and accepts more values in the same pattern. Type =MAXIFS( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=MAXIFS(B1:B3, A1:A3, "y")Result Data in the sheet
| A | B | |
|---|---|---|
| 1 | y | 10 |
| 2 | n | 99 |
| 3 | y | 20 |
Related statistical functions
- LOGNORM.DISTReturns the lognormal distribution of x, where ln(x) is normally distributed.
- LOGNORM.INVReturns the inverse of the cumulative lognormal distribution.
- MAXReturns the largest number.
- MAXAReturns the largest value, counting text as 0 and TRUE as 1.
- MEDIANReturns the middle number of the values (the average of the two middle ones for an even count).
- MINReturns the smallest number.
- MINAReturns the smallest value, counting text as 0 and TRUE as 1.
- MINIFSReturns the smallest number among the cells that meet all conditions.
- MODE.MULTReturns a vertical list of all values that occur most often.