Back to product guides

Google Sheets Formulas

In this article, you will learn how to use the MAXIFS formula in Google Sheets.

The MAXIFS function in Google Sheets is a function that returns the maximum value in a range that meets multiple criteria. The MAXIFS formula is beneficial when searching a large amount of data for the largest value that meets the requirements. You can do the same search with the IF, MAX, and ARRAYFORMULA functions, but they tend to be complicated if you have multiple criteria, whereas the MAXIFS formula allows you to build a relatively easy-to-follow formula.

- Type
**“=MAXIFS”**or go to**“Insert”**→**“Function”**(or directly navigate to the**“Functions”**icon)**“Statistical”**→**“MAXIFS”**. - Specify the range from which the formula finds the maximum value
- Input the range to which the function applies a criterion, and then the criterion
- Repeat the third step until you enter all criteria
- Press the
**“Enter”**key.

In the next section, we will discuss how to use the MAXIFS formula with examples.

The general syntax of the MAXIFS formula is as follows:

**range**: This is the range that the function searched for the maximum value.

**criteria_range1**: This is the range to which the formula applies “criterion1”. The function checks whether each item in the range satisfies “criterion1”.

**criterion1**: This is a condition to filter the range, such as an amount of revenue or region of sales.

**criteria_range2 [Optional]**: Similar to “criteria_range1”, you need to specify the range to which the formula applies “criterion2”. You can select the same range with “criteria_range1” or a different one.

**criterion2 [Optional]**: If you need to input “criteria_range2”, you must identify the standard for the range.

**Note 1**: If necessary, you can add more than two criteria and their ranges

**Note 2**: The formula gives you zero if none of the conditions is met. Range and all of the criterion ranges need to be the same size. Otherwise, the MAXIFS formula returns “#VALUE”.

Assume that you have a dataset containing information on your customers, such as customer ID, revenue amount, date, region, and age. You want to find the maximum revenue that meets the following conditions: sales recorded (i) after 5/1/2021, inclusive, (ii) in the “East” region, and (iii) by customers aged less than or equal to thirty.

Look at the formula in detail. Note we fill two pairs of optional arguments for the second and third criteria (and the ranges to which they are applied).

**range**: $D$3:$D$22 (the Revenue column)

**criteria_range1**: $E$3:$E$22 (the Date column)

**criterion1**: $D$24 (Criteria 1)

**criteria_range2**: $F$3:$F$22 (the Region column)

**criterion2**: $D$25 (Criteria 2)

**criteria_range3**: $G$3:$G$22 (the Age column)

**criterion3**: $D$26 (Criteria 3)

As you can see, once you enter the Revenue range, what you need to do is to input a range for a criterion and the criterion and repeat the process until you include all three conditions. Then the formula automatically returns 35000, the maximum revenue meeting the abovementioned requirements.

When you use the MAXIFS function, though you can input conditions manually in the formula, we highly recommend that you use cell references as we do because they allow you to see the requirements clearly and change them easily later, if necessary. If you still want to use manual inputs for the formula, don’t enclose directly input arguments with quotation marks as you do for other functions.

If you don’t get the solution you are looking for in this article, or you have further questions related to mathematics or statistics, you may find the answers in the following articles.

Go to the following articles to learn basic formulas in Google Sheets.

How to Do Math in Google Sheets for Beginners

ADD Function in Google Sheets: Explained

MINUS Function in Google Sheets: Explained

DIVIDE Function in Google Sheets: Explained

MULTIPLY Function in Google Sheets: Explained

PRODUCT Function in Google Sheets: Explained

How to Use SUM Function in Google Sheets

How to Use SUMPRODUCT Formula in Google Sheets

How to Use MAX Function in Google Sheets

How to Use MIN Function in Google Sheets

How to Use MEDIAN Function in Google Sheets

How to Use AVERAGE Formula in Google Sheets

How to Use MODE Function in Google Sheets

MOD Function in Google Sheets: Explained

Navigate to the pages below to learn how to sum, count, or average numbers with a condition or multiple conditions.

How to Use SUMIF Function in Google Sheets - sum up the numbers that meet a criterion

SUMIFS Function in Google Sheets: Explained - sum up the numbers that meet multiple criteria

How to Use COUNTIF Function in Google Sheets - count the number of cells that meet a requirement

How to Use COUNTIFS function in Google Sheets - count the number of cells that meet multiple requirements

AVERAGEIF Function in Google Sheets: Explained - average the figures that meet a standard

AVERAGEIFS Function in Google Sheets: Explained - average the figures that meet multiple standards

AVERAGE.WEIGHTED Function in Google Sheets: Explained - use this formula to calculate the weighted average

MINIFS Function in Google Sheets: Explained - seek for the minimum value that meets specific criteria

Visit the following post if you are interested in learning how to count the number of specific cells.

COUNT Function in Google Sheets: Explained - count the number of cells containing numeric values (except for blank ones)

COUNTA Function in Google Sheets: Explained - count the number of cells incorporating all types of values containing text and date, except for blank ones

COUNTBLANK Function in Google Sheets: Explained - count the number of blank cells

COUNTUNIQUE Function in Google Sheets: Explained - count the number of unique cells

You can learn about other Google Sheets formulas and tips that are not mentioned here on this page: LiveFlow‘s How to Guides

Are you learning this formula to visualize financial data, build a financial model, or conduct financial analysis? In that case, LiveFlow may help you automate manual workflows and update numbers in real-time. You can access various financial templates on our website, from the simple Income Statement to Multi-Currency Consolidated Financial Statement. You can also customize these templates as you want without breaking the automated data inflow.

To learn more about LiveFlow, book a demo.

Learn how to do this step-by-step in the video below 👇

Our team of real people are here to help you any time between 9am and 10pm GMT.

Email us at: founders@liveflow.io

Call us at +1 (415) 650-1711