MAXIFS Function
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
MAXIFS(result_range, criteria_range1, criteria1)
Category: Conditional. Minimum arguments: 3. Maximum arguments: 255.
Available for supported offline calculation.
Examples
=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.