Google Sheets MAXIFS Function: Syntax, Examples & Tips

The MAXIFS function returns the maximum value from a range based on specified criteria, allowing for conditional analysis of data.
Google Sheets
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.

On this page
  1. Parameters
  2. What is MAXIFS?
  3. A Practical Example
  4. MAXIFS Formula
  5. Result of the Formula
  6. Why Use MAXIFS?
  7. Key Takeaways:
  8. Example use case

Parameters

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.

What is MAXIFS?

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.

A Practical Example

Imagine you are managing a sales report that includes information about different products sold, their sales amounts, and the regions where they were sold:

Sales Table:

ProductIDProductNameSalesAmountRegion
101Widget A500North
102Widget B300South
103Widget C700North
104Widget D200East
105Widget E600South

You want to find the maximum sales amount for products sold in the North region.

MAXIFS Formula

To achieve this, you would use the MAXIFS function as follows:

Google Sheets
=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.

Result of the Formula

When you apply the MAXIFS formula to the Sales Table, the output would be:

Google Sheets
700

This indicates that the maximum sales amount for products sold in the North region is 700, which corresponds to Widget C.

Why Use MAXIFS?

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.

Key Takeaways:

  • MAXIFS: A modern Google Sheets function that finds the maximum value in a range based on specified criteria.
  • Flexible Criteria: Allows for multiple conditions, making it suitable for complex data analysis.
  • Efficiency: Simplifies the process of identifying maximum values, saving time and reducing errors.
  • Common Use Cases: Ideal for sales analysis, performance tracking, and any scenario where identifying top values based on specific filters is necessary.

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!

Example use case

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.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.