MAXIFS(range, criteria_range1, criterion1, [criteria_range2, criterion2], …)One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
range:
The range of cells from which you want to find the maximum value based on the specified criteria.
criteria_range1:
The range of cells that you want to evaluate against the first criterion.
criterion1:
The condition or value that you want to apply to the first criteria range. This can be a number, text, expression, or a cell reference.
criteria_range2:
(Optional) The range of cells that you want to evaluate against the second criterion.
criterion2:
(Optional) The condition or value that you want to apply to the second criteria range. This can be a number, text, expression, or a cell reference.
...:
(Optional) Additional pairs of criteria ranges and criteria that you can specify to further refine the maximum value search.
The MAXIFS function in Google Sheets is a powerful tool used to find the maximum value in a range based on one or more criteria. It allows users to specify conditions that must be met for the values to be considered in the maximum calculation. This function is particularly useful for analyzing data sets where you need to identify the highest values that meet specific conditions.
In simpler terms, MAXIFS helps you find the largest number in a set of data while applying filters to focus on the relevant entries.
Imagine you are managing a sales report that includes information about different products sold, their sales amounts, and the regions where they were sold:
| ProductID | ProductName | SalesAmount | Region |
|---|---|---|---|
| 101 | Widget A | 500 | North |
| 102 | Widget B | 300 | South |
| 103 | Widget C | 700 | North |
| 104 | Widget D | 200 | East |
| 105 | Widget E | 600 | South |
You want to find the maximum sales amount for products sold in the North region.
To achieve this, you would use the MAXIFS function as follows:
=MAXIFS(Sales!C:C, Sales!D:D, "North")In this formula:
Sales!C:C is the range containing the SalesAmount values.Sales!D:D is the range where the function will look for the Region."North" is the criteria specifying that you only want to consider sales from the North region.When you apply the MAXIFS formula to the Sales Table, the output would be:
700This indicates that the maximum sales amount for products sold in the North region is 700, which corresponds to Widget C.
MAXIFS is beneficial because it streamlines the process of finding maximum values under specific conditions. It eliminates the need for complex array formulas or multiple calculations, making your data analysis more efficient. Additionally, it allows for the inclusion of multiple criteria, providing greater flexibility in data evaluation.
MAXIFS is an essential function for anyone working with data in Google Sheets, providing a powerful way to enhance data analysis and reporting capabilities.
Happy spreadsheeting!
You have a sales data table with Column A for sales representatives, Column B for sales amounts, and Column C for regions. Use MAXIFS to find the highest sales amount for a specific representative in a given region, enabling targeted performance analysis.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.