Home › Excel functions › MIN & MAX
MIN and MAX in Excel: Lowest and Highest Values
MIN returns the smallest number in a range and MAX the largest. With MINIFS and MAXIFS you can add conditions, and combined with a lookup you can find out who or what has the highest value.
In this guide
Syntax
=MIN(number1, [number2], …) =MAX(number1, [number2], …)Both ignore empty cells, text and TRUE/FALSE in a range.
Basic example
| A | B | C | |
|---|---|---|---|
| 1 | Region | Rep | Sales |
| 2 | North | Anna | 1,200 |
| 3 | South | Ben | 800 |
| 4 | North | Chris | 950 |
| 5 | East | Dana | 450 |
| 6 | South | Eli | 700 |
=MAX(C2:C6)returns 1,200=MIN(C2:C6)returns 450
MIN & MAX practice: try it yourself
Reading is one thing, typing it is another. Build the formula below step by step: the tips tell you what to type next, and you can click or drag across cells to add them, just like in Excel.
Task: Find the highest temperature of the week, in B9: =MAX(B2:B8)
With conditions: MINIFS and MAXIFS
=MAXIFS(max_range, criteria_range1, criteria1, …)- Highest sale in the South:
=MAXIFS(C2:C6, A2:A6, "South")returns 800. - Lowest sale in the North:
=MINIFS(C2:C6, A2:A6, "North")returns 950.
Criteria work like in SUMIFS: text, ">100", wildcards or cell references. MINIFS and MAXIFS are available in Excel 2019 and later.
Find who has the highest value
MAX tells you the value, not the row. Combine it with a lookup to get the name:
Comparison operators: what to type
| Type | Means |
|---|---|
| = | is equal to |
| > | greater than |
| < | less than |
| >= | greater than or equal to: first >, then = |
| <= | less than or equal to: first <, then = |
| <> | not equal to: first <, then > |
Always two separate keys, never a special symbol. In criteria, put the operator and the value together inside quotes, such as ">=500" or "<>Paid" as the condition.
returns Anna. In Microsoft 365 or Excel 2021+: =XLOOKUP(MAX(C2:C6), C2:C6, B2:B6). If two people share the top value, both formulas return the first one. See INDEX/MATCH.
Related tricks
- Second-highest or top 3: use LARGE and SMALL.
- Cap a value:
=MIN(B2, 100)never returns more than 100;=MAX(B2, 0)never goes below 0. - Latest or earliest date: dates are numbers, so
=MAX(D2:D100)returns the most recent date. - Highlight the max with conditional formatting › Top/Bottom Rules › Top 10 Items, set to 1.
In practice: cheapest and dearest price per supplier
You buy the same kind of products from two suppliers and want to see each supplier's price range at a glance.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Supplier | Price |
| 2 | P-01 | Alpha | $12.50 |
| 3 | P-02 | Beta | $9.80 |
| 4 | P-03 | Alpha | $14.20 |
| 5 | P-04 | Beta | $11.00 |
| 6 | P-05 | Alpha | $10.90 |
| 7 | P-06 | Beta | $13.40 |
- Cheapest at Alpha:
=MINIFS(C2:C7, B2:B7, "Alpha")→ $10.90 - Dearest at Alpha:
=MAXIFS(C2:C7, B2:B7, "Alpha")→ $14.20 - Price range overall:
=MAX(C2:C7)-MIN(C2:C7)→ $4.40
Change "Alpha" to "Beta" and you get 9.80 and 13.40. The last formula shows how far apart the lowest and highest price are across both suppliers.
Keep learning
Frequently asked questions
Why does MAX return 0?
The range contains no real numbers, often because the numbers are stored as text. Convert them and MAX will work.
How do I find the max ignoring errors?
Use AGGREGATE: =AGGREGATE(4, 6, C2:C6) returns the maximum while ignoring error values.
Does MIN ignore zeros?
No. To find the smallest value above zero, use =MINIFS(C2:C6, C2:C6, ">0").