# MAXIFS formula generator

> Describe what you need and get a MAXIFS formula for Excel and Google Sheets, run on real data before you copy it. Plus 8 tested MAXIFS examples.

Source: https://spreadsheetpractice.com/tools/formula-generator/maxifs · Updated October 29, 2026 · Formulas and results on this page were run by the Spreadsheet Practice formula engine on November 20, 2026

MAXIFS returns the largest value among the rows that meet one or more conditions: the biggest deal in a region, the latest order date for a customer.

Describe the task at [MAXIFS formula generator](https://spreadsheetpractice.com/tools/formula-generator/maxifs) and get a MAXIFS formula for Excel and Google Sheets, tested on real data.

## Tested MAXIFS examples

### Find the maximum value with criteria in Excel (MAXIFS)

`=MAXIFS(C2:C9,B2:B9,F1)`

Excel. Result on the sample sheet: $3,395. [See it and try it](https://spreadsheetpractice.com/formulas/maxifs-maximum-with-criteria)

### Find the latest date for each customer

`=MAXIFS($B$2:$B$9,$A$2:$A$9,E2)`

Excel. Result on the sample sheet: 3 rows (F2:F4). [See it and try it](https://spreadsheetpractice.com/formulas/latest-date-for-each-customer)

### Return the amount of the most recent order for a customer

`=XLOOKUP(1,(A2:A9=F1)*(B2:B9=MAXIFS(B2:B9,A2:A9,F1)),C2:C9)`

Excel. Result on the sample sheet: $1,460. [See it and try it](https://spreadsheetpractice.com/formulas/value-from-the-most-recent-date)

### Get the latest record for each customer

`=FILTER(A2:C12,B2:B12=MAXIFS(B2:B12,A2:A12,A2:A12))`

Excel. Result on the sample sheet: 4 rows (E2:G5). [See it and try it](https://spreadsheetpractice.com/formulas/latest-record-for-each-customer)

### Get the most recent entry for every customer

`=SORT(FILTER(A2:C11,B2:B11=MAXIFS(B2:B11,A2:A11,A2:A11)))`

Excel. Result on the sample sheet: 4 rows (E2:G5). [See it and try it](https://spreadsheetpractice.com/formulas/latest-entry-for-every-customer)

### Find the highest value for each category

`=HSTACK(UNIQUE(A2:A13),MAXIFS(C2:C13,A2:A13,UNIQUE(A2:A13)))`

Excel. Result on the sample sheet: 3 rows (E2:F4). [See it and try it](https://spreadsheetpractice.com/formulas/highest-value-for-each-category)

### Look up the price in effect on a date

`=XLOOKUP(1,(A2:A9=F1)*(B2:B9=MAXIFS(B2:B9,A2:A9,F1,B2:B9,"<="&H1)),C2:C9)`

Excel. Result on the sample sheet: $27.90. [See it and try it](https://spreadsheetpractice.com/formulas/price-in-effect-on-a-date)

### Find the top seller in each region

`=XLOOKUP(1,($B$2:$B$10=E2)*($C$2:$C$10=MAXIFS($C$2:$C$10,$B$2:$B$10,E2)),$A$2:$A$10)`

Excel. Result on the sample sheet: 4 rows (F2:F5). [See it and try it](https://spreadsheetpractice.com/formulas/top-seller-in-each-region)

## Questions

### What does the MAXIFS formula generator do?

You describe the task in plain English, and it writes the formula, using MAXIFS where that's the right tool, for your table or a sample one. The formula is run in our engine in Excel and Google Sheets mode before you see it, so you get its result, not just a guess.

### What does MAXIFS do?

MAXIFS returns the largest value among the rows that meet one or more conditions: the biggest deal in a region, the latest order date for a customer.

### Can I learn to write MAXIFS formulas myself?

Yes. Each example below opens a page where you try the formula in a live grid and it's checked as you go, and the MAXIFS function page has a practice exercise.

---

Spreadsheet Practice (https://spreadsheetpractice.com) teaches spreadsheet formulas by practice: every exercise is graded in a live grid and re-checked on changed data.
