MAXIFS
The MAXIFS
function in Google Sheets is a powerful tool to return the maximum value in a range of cells, filtered by a set of criteria. Whether you're analyzing sales data, tracking inventory, or evaluating student performance, the MAXIFS
function simplifies the task. Explore our comprehensive guide below to learn how to apply this function effectively.
Function Syntax and Parameters
Syntax: MAXIFS(range, criteria_range1, criterion1, [criteria_range2, criterion2], ...)
Parameters:
range
: The range of cells to evaluate.criteria_range1
: The range to test against the first criterion.criterion1
: The criterion or condition to use with the first range.criteria_range2, criterion2, ...
: [Optional] Additional ranges and criteria to apply.
Step-by-Step Tutorial
-
Using
MAXIFS
with a single criterion:- Example: If
A1:A5
has the values5, 10, 3, 8, 7
, andB1:B5
has the valuesRed, Blue, Blue, Red, Red
, then=MAXIFS(A1:A5, B1:B5, "Red")
will return8
.
- Example: If
-
Using multiple criteria with
MAXIFS
:- Example: If
A1:A5
has the values5, 10, 3, 8, 7
,B1:B5
has the valuesRed, Blue, Blue, Red, Red
, andC1:C5
has the valuesApple, Banana, Banana, Apple, Apple
, then=MAXIFS(A1:A5, B1:B5, "Red", C1:C5, "Apple")
will return8
.
- Example: If
Use Cases and Scenarios
- Inventory Management: Find the maximum quantity for a specific product.
- Sales Analysis: Identify the highest sales figure for a particular region and product.
- Student Performance: Determine the highest score achieved by a student in a specific subject.
Related Functions
MIN
: Find the smallest value in a set.MINIFS
: LikeMAXIFS
, but returns the minimum value based on specific criteria.