ExcelFlux

MAXIFS function

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

Statistical · Excel 2019+

Where can you use it?

Analytics, quality and research teams. Use this group to examine distributions, variability or relationships in measurements, sales or service durations.

Scenario in the workbook

Find the largest amount meeting a condition. Count matches if a zero result must be distinguished from no records.

A worked example from the workbook

RowABC
6InputComparisonGroup
7A10A
8B20A
9C5B
Record 1
=MAXIFS($B$7:$B$9,$C$7:$C$9,A7)

Expected result20

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=MAXIFS($B$7:$B$9,$C$7:$C$9,A7)
Turkish Excel · tr-TR
=ÇOKEĞERMAK($B$7:$B$9;$C$7:$C$9;A7)

Worked examples

Find the largest amount meeting a condition. Count matches if a zero result must be distinguished from no records.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A B C
6 Input Comparison Group
7 A 10 A
8 B 20 A
9 C 5 B
Case Formula Expected result
Record 1 =MAXIFS($B$7:$B$9,$C$7:$C$9,A7) 20
Record 2 =MAXIFS($B$7:$B$9,$C$7:$C$9,A8) 5
Record 3 =MAXIFS($B$7:$B$9,$C$7:$C$9,A9) 0
Microsoft Excel reference