Home > Formulas > Statistical > MINIFS MAXIFS

Excel MINIFS and MAXIFS Functions

Debra Dalgleish - Contextures

To find lowest and highest numbers in a list, based on criteria, use Excel MINIFS and MAXIFS functions (Excel 2019 and later). Examples and video below, and an Excel file to download.

Tip: For older Excel, use MIN IF and MAX IF formulas

Also see: MIN and MAX function basics

MAXIFS multiple criteria

1) MIN or MAX with Criteria

Instead of finding the overall MIN or MAX, you might need to include criteria in your calculations. For example:

  • What is the MIN order total for Binder sales?
  • What is the MAX quantity in the East region?

In Excel 2019 and later, or Excel for Office 365:

  • Use the MINIFS and MAXIFS functions, shown below, to find a minimum value, or maximum value, based on one or more criteria.

For earlier versions of Excel:

2) MINIFS Function

Use the MINIFS function to find the smallest value, based on one or more criteria.

MINIFS has 3 required arguments in its syntax:

  • min_range: The range where the minimum value will be found
  • range1: The first range to check for a criterion
  • criteria1: The first criterion

minifs function arguments

2.1) MINIFS - One Criterion

For example, this formula (for Excel 365) finds the minimum quantity for the product name in cell B6.

  • =MINIFS(tblProdCust[Qty], tblProdCust[Product], B4#)

There's a spill formula in cell B4 to create a unique list of products. The MINIFS formula has a spill operator (#) at the end of that cell reference -- B4# -- so the MINIFS results spill down too.

Excel 2019: Spill formulas are not available in Excel 2019. In that version, refer to cell B4, without the spill operator, and copy the formula down manually.

  • =MINIFS(tblProdCust[Qty], tblProdCust[Product], B4)

minifs function arguments

2.2) MINIFS - Two Criteria

To use two or more criteria with MINIFS, use the optional arguments for additional criteria ranges and criteria.

MINIFS has optional pairs of arguments in its syntax, for criteria ranges and criteria:

  • range1 to range126: optional ranges to check for a criterion
  • criteria1 to criteria126: optional criteria, for the matching criteria ranges

For example, this formula (for Excel 365) finds the minimum quantity for the customer selected in cell C3, and the product name in cell B6.

  • =MINIFS(tblProdCust[Qty], tblProdCust[Product], B6#, tblProdCust[Cust], $C$3)

There's a spill formula in cell B6 to create a unique list of products. The MINIFS formula refers to that cell with the spill operator -- B6# -- so the MINIFS results spill down too.

Excel 2019: Spill formulas are not available in Excel 2019. In that version, refer to cell B6, without the spill operator, and copy the formula down manually.

  • =MINIFS(tblProdCust[Qty], tblProdCust[Product], B6, tblProdCust[Cust], $C$3)

MINIF multiple criteria

3) MAXIFS Function

In Excel 2019, or Excel for Office 365, you can use the MAXIFS function to find a maximum value, based on one or more criteria. For earlier versions of Excel, use the MAX IF With Multiple Criteria formula shown below.

MAXIFS has 3 required arguments in its syntax:

  • max_range: The range where the maximum value will be found
  • range1: The first range to check for a criterion
  • criteria1: The first criterion

maxifs function arguments

3.1) MAXIFS - One Criterion

MAXIFS has optional pairs of arguments in its syntax, for criteria ranges and criteria:

  • range1 to range126: optional ranges to check for a criterion
  • criteria1 to criteria126: optional criteria, for the matching criteria ranges

For example, this formula (for Excel 365) finds the maximum quantity for the product name in cell B6.

  • =MAXIFS(tblProdCust[Qty], tblProdCust[Product], B4#)

There's a spill formula in cell B6 to create a unique list of products. The MAXIFS formula has a spill operator (#) at the end of that cell reference -- B4# -- so the MAXIFS results spill down too.

Excel 2019: Spill formulas are not available in Excel 2019. In that version, refer to cell B4, without the spill operator, and copy the formula down manually.

  • =MAXIFS(tblProdCust[Qty], tblProdCust[Product], B4)

maxifs function arguments

3.2) MAXIFS - Two Criteria

To use two or more criteria with MAXIFS, use the optional arguments for additional criteria ranges and criteria.

For example, this formula (for Excel 365) finds the maximum quantity for the customer selected in cell C3, and the product name in cell B6.

  • =MAXIFS(tblProdCust[Qty], tblProdCust[Product], B6#, tblProdCust[Cust], $C$3)

There's a spill formula in cell B6 to create a unique list of products. The MAXIFS formula refers to that cell with the spill operator -- B6# -- so the MAXIFS results spill down too.

Excel 2019: Spill formulas are not available in Excel 2019. In that version, refer to cell B6, without the spill operator, and copy the formula down manually.

  • =MAXIFS(tblProdCust[Qty], tblProdCust[Product], B6, tblProdCust[Cust], $C$3)

MAXIFmultiple criteria

4) MAXIFS - Get Latest Product Price

If you have a list of product prices and dates, you can use a MAXIFS formula to find the latest pricing date for a specific product:

Then, use SUMIFS to get the price for that product, on that date.

4.1) Latest Price with MAXIFS Function

In Excel 2019, or Excel for Office 365, you can use this MAXIFS formula, to find the latest price.

In this example, there is a price table with product, customer, date and price.

product customer price table

You could use two formulas in the solution - one to find the latest price, and one to find the price for that date.

This formula in C4 returns the latest date for the selected product and customer:

  • =MAXIFS(tblPrice[Date], tblPrice[Product], A4, tblPrice[Cust], B4)

Next, this formula in cell D4 returns the price for that date, and the selected product and customer:

  • =SUMIFS(tblPrice[Price], tblPrice[Product],A4, tblPrice[Cust],B4, tblPrice[Date],C4)

Or, use this all-in-one formula, in cell D6, to find the price for the latest date:

  • =SUMIFS(tblPrice[Price], tblPrice[Product], A4, tblPrice[Cust], B4, tblPrice[Date], MAXIFS(tblPrice[Date], tblPrice[Product], A4, tblPrice[Cust], B4))

product customer price table

5) Get the Excel Files ✅

  1. Formulas: To see the MAXIFS and MINIFS formulas, you can download the MINIFS and MAXIFS sample file. The zipped file is in Excel xlsx format, and does not contain macros.

Get Monthly Excel Tips!

Don't miss my monthly Excel newsletter! You'll get quick tips, article links, and a bit of fun. Add your email, and click Sign Up.

Next, when you get my reply, click the Confirm button. I add this step to protect you from spam!

 

More Tutorials

MIN / MAX

MINIFS / MAXIFS

MIN IF / MAX IF

AVERAGE

CHOOSE

INDEX / MATCH

 

 


Last updated: February 27, 2026 3:55 PM