Skip to main content

Excel MAXIFS Function

doc maxifs function 1

If you want to follow along with this tutorial, please download the example spreadsheet.

doc sample1

Description

The Excel MAXIFS function returns the largest value of a range of values that specified set of criteria.

Syntax and arguments

Formula syntax

MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

Arguments

  • Max_range: Required, a range of cells that you want to find the largest value from.
  • Criteria_range1: Required, the range of cells that to evaluate with criteria1.
  • Criteria1: Required, the condition to use on criteria_range1.
  • Criteria_range2, Criteria2, ...: Required, Optional, the additional ranges and the associated criteria. Up to 126 range/criteria pairs can be added in MAXIFS function.

Return Value

The MAXIFS function returns the largest numeric value that meets criteria.

Remark

1. The size and shape of max_range and criteria_range1, …must be the same, otherwise, the MAXIFS function returns #VALUE! error value.

2. MAXIFS function supports logical operators (<,>,=,<>) and wildcards (*,?) for partial matching.

3. No cells match criteria, MAXIFS function returns 0.

4. MAXIFS function ignores empty cells in max_range.

Version

Excel 365, Excel 2019 and later

Usage and Examples

Example 1: one criterion

Range B4:B7 lists the prices of fruits in cell C4:C7, now to get the highest price of peach, you can use the formula as this:

=MAXIFS(B4:B7,C4:C7,"peach")

Or use the cell reference as criteria1

=MAXIFS(B4:B7,C4:C7,E5)

Press Enter key to get the highest price of peach.

doc maxifs function 2

Example 2: two criteria

Range B10:B15 lists the prices of fruits in cell C10:C15, and range D10:D5 lists the store of the fruits, now to get the highest price of peach in store A, you can use the formula as this:

=MAXIFS(B10:B15,C10:C15,"peach",D10:D15,"A")

Or use the cell reference as criteria

=MAXIFS(B10:B15,C10:C15,F10,D10:D15,F12)

Press Enter key to get the highest price of peach in store A.

doc maxifs function 3


Relative Functions:

  • Excel MAX Function
    The Excel MAX functionreturns the largest value in the supplied set of values (ignores logical values).

  • Excel MAXA Function
    The Excel MAXA function returns the largest value in the supplied set of values.


The Best Office Productivity Tools


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations