Skip to content

Lessons in your language are coming soon. Formulas already work in your Excel language.

This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.

Excel function · Statistics

MAXIFS

Returns the largest number whose row meets one or more conditions.

What it does

MAXIFS finds the highest value among the rows that meet every condition. Its partner MINIFS finds the lowest in the same way.

Syntax

=MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2], …)

Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ,

Arguments

max_range
The numbers to take the largest from.
criteria_range
A range to test, the same size as the max range.
criteria
The condition for that range.

Example

What was the biggest single food bill?

ABCD
1CategoryAmountBiggest food bill
2Food1825
3Hotel90
4Food25
5Train40

The formula in D2:

=MAXIFS(B2:B5,A2:A5,"Food")

Result: 25

The Food rows have 18 and 25, so the result is 25. The hotel and train rows are bigger but don't match.

Common mistakes

  • Expecting #N/A when nothing matches. It returns 0, which can look like a real answer.
  • Using it in a file that must open in old Excel versions, which don't have it.

In other Excel languages

Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.

Excel languageFunction nameSeparator
EnglishMAXIFS,
DeutschMAXWENNS;
FrançaisMAX.SI.ENS;
Español (España)MAX.SI.CONJUNTO;
Español (México)MAX.SI.CONJUNTO,
日本語MAXIFS,
한국어MAXIFS,
繁體中文MAXIFS,
ไทยMAXIFS,
ខ្មែរMAXIFS,
Tiếng ViệtMAXIFS;

Practise it

More from this module

All functions