Over 2 million + professionals use CFI to learn accounting, financial analysis, modeling and more. Unlock the essentials of corporate finance with our free resources and get an exclusive sneak peek at the first module of each course.
Start Free
What is the MAXIFS Function?
The MAXIFS Function[1] in Excel is a Statistical function that returns the maximum value based on one or more than one conditions from the specified cells. The MAXIFS function was introduced in MS Excel 2019.
Max_range (required argument) – The actual range of cells from which the maximum value will be determined.
Criteria_range (required argument) – The set of cells to be evaluated with the criteria.
Criteria1 (required argument) – Here, we give a number, expression, or text that defines which cells will be evaluated as maximum.
Criteria_range2 – An optional argument wherein we can specify additional ranges and their associated criteria.
MS Excel allows putting in up to 126 criteria.
How to use the MAXIFS Function in Excel?
It is a built-in function that can be used as a worksheet function in Excel. Let’s consider a few examples:
Example 1
Suppose we are given the quarterly expenses from the three regions in which our business operates. We wish to find out the maximum expense for the North region, so let’s see the formula to be used:
=MAXIFS( $D$5:$D$33, B$5:B$33, “North”)
In the example above, the Excel MAXIFS function identifies rows where the value in column B is equal to North, and returns the maximum value from the corresponding values in column D.
In this example, the MAXIFS Function identifies rows where the value in column A is equal to North and returns the maximum value from the corresponding values in column C.
Example 2
Let’s continue with the same example. We wish to know which region registered the highest printing and stationary expense. The formula to use will be:
The formula will return the amount with the expense of Printing & stationary.
Example 3
Let’s take another example. We wish to find out the student who scored Distinction in any subject and the marks scored are maximum. We use the data below:
The formula to use will be =MAXIFS(B6:B16,C6:C16,”A”,E6:E16,”=Distinction”)
In criteria_range1, C10, C11, and C16 match the criteria of “A” of the corresponding cells in criteria_range2, E10, E11 and E16 match the criteria of Distinction. Finally, of the corresponding cells in max_range, B11 gives the maximum value. The result is therefore 50.
Example 4
Let’s take this example wherein we would use MAXIFS with an array formula. We wish to use the “MAXIFS” formula that will return the latest date for open tasks for each project in Column E for the data below:
So, for the data example above, we would expect to see 01/03/2017 in Column F on all rows for Project A; 01/05/2017 for all rows of Project B; and 01/01/2017 for all rows of Project C.
The formula to be used is below:
For parentheses, we need to press Ctrl+Shift+Enter the first time we input it because it only works as an array formula. After that, we can drag it over the range where we need it.
Things to remember about the MAXIFS function
#VALUE! error – This is returned when the size and shape of the max_range and criteria_rangeN arguments aren’t the same.
If we are using earlier versions of Excel, we can use an array formula based on MAX and IF to find maximum values with criteria.
#NAME? error – Occurs when we are using an older function of Excel.
Thanks for reading CFI’s guide to important Excel functions! By taking the time to learn and master these functions, you’ll significantly speed up your financial analysis. To learn more, check out these additional CFI resources:
To master the art of Excel, check out CFI’s Excel Crash Course, which teaches you how to become an Excel power user. Learn the most important formulas, functions, and shortcuts to become confident in your financial analysis.
Take your learning and productivity to the next level with our Premium Templates.
Upgrading to a paid membership gives you access to our extensive collection of plug-and-play Templates designed to power your performance—as well as CFI's full course catalog and accredited Certification Programs.
Gain unlimited access to more than 250 productivity Templates, CFI's full course catalog and accredited Certification Programs, hundreds of resources, expert reviews and support, the chance to work with real-world finance and research tools, and more.