Excel - MAXIFS Function



MAXIFS Function

The Excel MAXIFS function is another variant of the MAX function, first launched in the Excel 2019 tool. It fetches the highest value among cells that fulfill one or more conditions. If you use the EXCEL version before Excel 2019, you can use the AGGREGATE function, to the MAXIFS. For example, the MAXIFS function can determine the highest salary with the productivity score of the sales manager designation.

Compatibility

This advanced Excel function is compatible with the following versions of MS Excel.

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2024
  • Excel 2024 for Mac
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019

Syntax

The syntax of the MAXIFS function is as follows −

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

Arguments

You can use the following arguments with the MAXIFS function −

Argument Description Required / Optional
max_range It specifies the cell range from which the immense value will be retrieved. Required
criteria_range1 It indicates the range of cells being computed with a specific condition. Required
criteria1 It represents the condition of an integer value, expression, or text. Required
criteria_range2, criteria2,... Other cell ranges and their corresponding condition. You may specify up to 126 range/criteria pairs. Optional

Points to Remember

  • The MAXIFS function ignores the case differences while matching a text string in the condition.
  • This function would consider the hidden cells.
  • Wildcard character like ?(single character) and *(multiple character) can be employed in this function.

The Excel MAXIFS Function Not Working

  • The MAXIFS functions will retrieve the #VALUE! Error if the length of the max_range and crtieria_rangeN are not equivalent.
  • If the condition defined in the criteria_range is inaccurate, this function wont work.
  • If you execute the MAXIFS function in an older version, such as Excel 2010 or Excel 2007, then the #NAME! error will occur.
  • If the max_range argument contains only non-numeric and blank values, the MAXIFS function will not be executed and return the zero(0) as a result.
  • If the inconsistent data type in the criteria_range is mismatched with the max_range argument.

Examples of MAXIFS Function in Excel

Practice the following examples to get the master proficiency in the MAXIFS function in Excel.

In this example, we will learn the basic concept of the MAXIFS function and its usage. The main task is to obtain the highest value for the student in the grade B.

Example 1: How to use the MAXIFS Function in Excel?

Step 1 − Consider the sample dataset where the Marks and Grades of students are specified in the cell range B2:B9 and C2:C9.

MAXIFS Function in Excel

Step 2 − After that, select the cell C10 and write the formula =MAXIFS(B2:B9,C2:C9,"B").

MAXIFS Function in Excel 1

Therefore, the MAXIFS function returns the 55 number, that is the maximum mark in Grade B.

Example 2: Using Multiple Criteria

In this example, the different problem statements are resolved using the MAXIFS function, and the wild characters are defined in the criteria_range.

Problem Statement 1

What is the highest sales production of the region whose first five letters match with South and its values are not equal to 19,000 in the cell range B2:B6?

Select the C2 cell and write the formula =MAXIFS(B2:B6,A2:A6,"South*", B2:B6,"<>19,000"). In this MAXIFS formula, the wild character * matched various letters in the range A2:A6.

MAXIFS Function in Excel 2

After that, press the Enter to compute the MAXIFS function.

MAXIFS Function in Excel 3

Problem Statement 2

What is the highest sales production of the region whose characters are exactly equal to the six characters?

You can select the C3 cell and write the formula =MAXIFS(B2:B7,A2:A7,"??????").

MAXIFS Function in Excel 4

Hence, the MAXIFS formula retrieves 75,000 as a result of the Europe region, which contains exactly six characters.

MAXIFS Function in Excel 5

Download Practice Sheet

You can download and use the sample data sheet to practice the MAXIFS function.

Advertisements