FormulaCamp
Completed
← Google Sheets functions
Google Sheets function

MAXIFS in Google Sheets

MAXIFS with worked examples you can test in the live grid. The argument details are in the Excel guide.

In Google Sheets

The arguments and common errors are covered in the MAXIFS Excel guide; check the function help in Google Sheets for its own argument list.

Worked examples in Google Sheets

Highest group A score

ABC
1NameGroupScore
2AnaA72
3BenB88
4CaraA91
5DanB65
6EliA84

Formula: E2: =MAXIFS(C2:C6,B2:B6,"A")

Result: 91

Among group A, 91 is largest.

Highest score below 90

ABC
1NameGroupScore
2AnaA72
3BenB88
4CaraA91
5DanB65
6EliA84

Formula: E2: =MAXIFS(C2:C6,C2:C6,"<90")

Result: 88

Scores 91 and above are excluded.

Highest group B score

ABC
1NameGroupScore
2AnaA72
3BenB88
4CaraA91
5DanB65
6EliA84

Formula: E2: =MAXIFS(C2:C6,B2:B6,"B")

Result: 88

Group B contains 88 and 65.

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =MAXIFS(C2:C7,A2:A7,"West")

Example spreadsheet for MAXIFS
ABCDEF
1RegionProductUnitsPriceResult
2EastPen1202.580
3WestPen802.5
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: 80
Practice this in a lesson: Multiple Conditions

Google Sheets is used here only as a descriptive product name. FormulaCamp is not affiliated with Google.