Skip to main content

Excel MAXIFS Function

Author: Sun Last Modified: 2024-10-25
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

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


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.