Min Max Formula in Excel: How to Use MIN and MAX

Formulas & functions · Updated November 23, 2026

The MIN and MAX formulas in Excel are =MIN(range) and =MAX(range), which return the smallest and largest numbers in a set of values. For example, =MIN(A1:A10) gives the lowest value in cells A1 through A10, and =MAX(A1:A10) gives the highest.

What MIN and MAX Do

MIN and MAX are statistical functions in Excel that identify the extremes of a numeric dataset. They ignore empty cells, text, and logical values (TRUE/FALSE) when used with a range. If you type numbers directly into the formula, like =MIN(5, 8, 3), it returns 3. These functions are useful for finding the smallest sale, the highest test score, the lowest temperature, or any other boundary value in a list.

Both functions work in Excel for Microsoft 365, Excel 2021, Excel 2019, and older versions. The syntax is identical across Windows and Mac: =MIN(number1, [number2], ...) and =MAX(number1, [number2], ...). You can reference individual cells, ranges, or constants.

How to Use MIN and MAX Step by Step

Using these formulas is straightforward. Here’s how to apply them to a column of numbers:

  1. Click an empty cell where you want the result to appear.
  2. Type =MIN( or =MAX(.
  3. Select the range of cells containing your numbers, or type the range manually (e.g., B2:B20).
  4. Close the parenthesis and press Enter.

For example, with sales figures in B2:B20, =MIN(B2:B20) returns the lowest sale, and =MAX(B2:B20) returns the highest. If you want to exclude zero values, you can use an array formula like =MIN(IF(B2:B20>0,B2:B20)) and press Ctrl+Shift+Enter (on Mac: Cmd+Shift+Enter) in older Excel versions, or just press Enter in Microsoft 365 because dynamic arrays handle it automatically.

Choosing Between MIN, MAX, and Other Functions

MIN and MAX are simple extremes, but sometimes you need more. If you want the second smallest or second largest, use SMALL or LARGE. For example, =SMALL(A1:A10, 2) returns the second smallest value. To find the average of the min and max, combine them: =(MIN(A1:A10)+MAX(A1:A10))/2.

When you need the minimum or maximum based on a condition, use MINIFS and MAXIFS (available in Excel 2019 and Microsoft 365). For instance, =MAXIFS(C2:C20, B2:B20, "North") finds the highest sales in the North region. If you’re using an older version, you’ll need an array formula with IF.

Common Problems and Errors with MIN and MAX

One frequent issue is that MIN and MAX ignore text, but if your range contains numbers stored as text, they may be skipped. To fix, convert text to numbers using the VALUE function or the Text to Columns wizard. Another problem: if the range contains errors like #DIV/0!, MIN and MAX will also return that error. Use AGGREGATE to ignore errors: =AGGREGATE(4, 6, A1:A10) for MAX (function 4) and =AGGREGATE(5, 6, A1:A10) for MIN, where 6 means ignore errors.

Also, MIN and MAX treat logical values (TRUE/FALSE) as 1 and 0 when typed directly, but ignore them in ranges. If you need to include TRUE as 1, use =MIN(--A1:A10) as an array formula.

MIN and MAX Compared to SMALL and LARGE

MIN and MAX are essentially shorthand for SMALL(range, 1) and LARGE(range, 1). The difference is that SMALL and LARGE let you specify the k-th smallest or largest. For example, =LARGE(A1:A10, 3) gives the third largest value. If you only need the absolute extremes, MIN and MAX are simpler and faster. For ranking or finding percentiles, use SMALL and LARGE or PERCENTILE functions.

Real-World Examples and Tips

Suppose you track daily temperatures in column A. =MIN(A:A) gives the coldest day, and =MAX(A:A) the hottest. In a budget, you can find the cheapest expense and the most expensive. To highlight the min and max visually, use conditional formatting: select the range, go to Home > Conditional Formatting > Top/Bottom Rules, then choose “Bottom 10 Items” for min or “Top 10 Items” for max, and set the number to 1.

For a quick min and max without formulas, select the range and look at the status bar at the bottom right of Excel; it shows the average, count, and sum, but not min/max by default. To add min and max to the status bar, right-click it and check “Minimum” and “Maximum”.

Frequently Asked Questions

Can MIN and MAX ignore zeros? Yes, but not directly. Use an array formula like =MIN(IF(A1:A10>0,A1:A10)) (press Ctrl+Shift+Enter in older Excel, or just Enter in Microsoft 365). This works because the IF creates an array of values that are positive, and MIN ignores the FALSE results.

Why is my MIN formula returning 0? If your range includes cells with 0, MIN will return 0. If you want to ignore zeros, use the array formula above. Also, check that you haven’t accidentally included a cell with a zero that looks empty.

What is the difference between MIN and MINA? MIN ignores text and logical values in ranges, while MINA includes them, treating TRUE as 1 and FALSE as 0, and text as 0. Use MINA when you need to consider all values, but be careful because text becomes 0.

How do I find the min or max across multiple sheets? Use a 3D reference like =MIN(Sheet1:Sheet3!A1), which returns the minimum of cell A1 across all sheets in that range. This works only if the sheets are adjacent in the tab order.

Can I use MIN and MAX with dates? Yes, dates are stored as serial numbers in Excel, so MIN and MAX work on them. For example, =MAX(A1:A10) returns the most recent date, and =MIN(A1:A10) the earliest.

Alternatives to MIN and MAX

If you need the minimum or maximum based on criteria, use MINIFS and MAXIFS (Excel 2019+). For ignoring errors, use AGGREGATE. For dynamic arrays, you can use TAKE and SORT to get the top or bottom values, like =TAKE(SORT(A1:A10,1,-1),1) for the maximum. But for most everyday needs, MIN and MAX are the simplest and fastest tools.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.