Skip to main content
← All functions

MAXIFS function

Returns the maximum value among cells specified by a given set of conditions or criteria

Returns the maximum value among cells specified by a given set of conditions or criteria.

Syntax

MAXIFS(sum_range, criteria_range1, criteria1, [criteriaRange2], [criteria2])

Square brackets indicate optional arguments.

Arguments

ArgumentRequiredMeaning
sum_rangeYesThe range of cells to max.A1:A20
criteria_range1YesIs the set of cells to evaluate with the criteria.B1:B20
criteria1YesIs the criteria in the form of a number, expression, or text that defines which cells will be evaluated as maximum. ">10"
criteriaRange2No · repeatsAdditional ranges. You can enter up to 127 ranges.C1:C20
criteria2No · repeatsAdditional associated criteria. You can enter up to 127 criteria."<20"

Try MAXIFS

Largest East amount

=MAXIFS(A2:A6,C2:C6,"East")

East records contain 12, -5 and 18. The West value of 25 is excluded.

Inspect the current formula

Read its written arguments or observe actual operation values in a separate local calculation. This action neither applies a draft nor grades an answer.

Read the formula, one argument at a time

Explore the written function calls and their inputs. The calculation result belongs to the complete formula.

MAXIFS · top-level call

=MAXIFS(A2:A6,C2:C6,"East")

1 / 3 · sum_range

The range of cells to max.

MAXIFS reference ↗

Follow the cells behind a result

Read explicit local references and helper formulas using a separate calculation. Your draft stays in this field; the worksheet and practice checks do not change.

The worksheet runs locally. Published checks apply to the supplied example only. Native Excel and Google Sheets compatibility remain unverified.

Reference and compatibility

Univer 1.0.4 / Apache-2.0. Calculation checks cover the supplied examples only. The browser worksheet does not implement every Excel feature, external service or connected data type.