The MIN and MAX functions return the smallest and largest numbers in a range of cells. Both take the same arguments, so once you can write one you can write the other: =MAX(B2:B20) gives the highest value and =MIN(B2:B20) gives the lowest. Type the formula in an empty cell, press Enter, and Excel reads the range you selected. If the range includes blanks, text, or logical values, MIN and MAX simply ignore them — which is usually what you want but can hide problems, so the sections below cover how to handle that.
What You'll Need
- Microsoft Excel on Windows, Mac, the web, or the mobile app (the formula syntax is the same everywhere).
- A column or row of numbers to work with — even a short sample list is enough to practise.
- Basic familiarity with cell references (A1, B2:B10) and pressing Enter or Return to commit a formula.
Step-by-Step
- Click an empty cell where you want the result to appear, ideally just below or beside your data so it is easy to label. Do not put the formula inside the range you are measuring, or you can create a circular reference that returns an error.
- Start the formula with MAX. Type
=MAX(and then select your numbers with the mouse. Excel fills in the range for you, producing something like=MAX(B2:B25). You can also type the range by hand. If your numbers are in non-adjacent cells, separate each reference with a comma:=MAX(B2,B15,B30). - Close the bracket and press Enter. The cell now shows the largest number. The formula bar above the grid shows the full formula for editing later.
- Repeat with MIN. In another empty cell type
=MIN(B2:B25)and press Enter. The result is the smallest number in the same range. - Add labels. In the cell to the left type a header such as Highest and Lowest, or put the same text in the cell above. Labels make the summary readable when you scan the sheet later.
- Handle ties and blanks deliberately. If two cells share the highest value, MAX returns that value once — it does not tell you which row it came from. To find the position, use
=MATCH(MAX(B2:B25),B2:B25,0)next to an INDEX formula, or apply an AutoFilter and sort the column descending. - Check for numbers stored as text. If MIN or MAX returns 0 or ignores cells you expect it to include, the cells may be text. Select the column, open the Data tab, and use Text to Columns with Finish to convert them, or change the cell format to Number and re-enter the values.
- Copy the formula across other categories if needed. If you have several columns (one per month, for example), drag the fill handle from the corner of the formula cell to the right. Note that a relative range like B2:B25 shifts as you drag, so use dollar signs (
$B$2:$B$25) if the range must stay fixed. - Wrap the formula in IFERROR if the range might be empty. MIN and MAX return 0 when the range contains no numbers, which can look like a real zero. Wrap the formula as
=IFERROR(MAX(B2:B25),"")or check the result against a COUNT of the range before relying on it.
Common Mistakes
Including the total row. The most frequent error is selecting the whole column (B:B) when a total or average sits at the bottom, which then becomes the maximum. Select only the data rows.
Expecting text to count. If your labels sit in the same range, MIN and MAX skip them silently — that is normal. But they also skip dates stored as text, which can make a range look wrong. Keep labels in their own column.
Using MAXA or MINA without knowing the difference. The A versions count logical values (TRUE as 1) and text representations of numbers, which changes results in raw data. Use plain MAX and MIN unless you specifically need that behaviour.
Confusing MIN with SMALL. =SMALL(range,2) returns the second-smallest number; MIN always returns the first. Same for LARGE versus MAX.
Forgetting the equals sign. Without =, Excel treats the entry as text and you see the formula typed out instead of a result.
Tips
Use the Status Bar: select any range and look at the bottom of the window — Excel shows Count, Average and Sum by default, and you can right-click the status bar to switch on Min and Max. It is the quickest way to glance at extremes without writing a formula.
Apply conditional formatting from the Home tab (Conditional Formatting > Top/Bottom Rules) to highlight the highest and lowest values in the data itself, which is often more useful than a summary cell.
Turn your range into an Excel Table with Ctrl+T (Cmd+T on Mac). Formulas written against the table use structured references like =MAX(Sales[Amount]), which update automatically when rows are added.
For a dynamic range that grows, use =MAX(B2:INDEX(B:B,COUNTA(B:B))) or a named range; both adapt as you add rows below. Test them on a copy before replacing formulas in a live workbook.
Remember that MIN and MAX work on filtered views only if you use SUBTOTAL with the right function number, or the dedicated AGGREGATE function — plain MAX ignores filters and measures hidden rows too.
Troubleshooting
Result is 0 when the data clearly has numbers. Check whether the numbers are stored as text. A quick test: use =ISNUMBER(B2) on a suspicious cell; if it returns FALSE, the cell holds text. Convert it with Text to Columns or by retyping the value after setting the format to Number.
Result is #VALUE! or the formula will not calculate. Check for a missing bracket, a stray quote, or a comma used instead of a semicolon. In some regional settings Excel uses semicolons as separators; the formula bar will flag this if you paste a formula copied from elsewhere.
The formula changed when I copied it. Relative references shift. Use $ before the column and row letters (for example $B$2:$B$25) to lock the range.
MAX returns a date or a very large number. Date cells are stored as serial numbers, so Excel treats them as numbers. If your range mixes dates and amounts, split them into separate ranges.
Circular reference warning appears. The formula cell is inside the range it references. Move the formula outside the range or reduce the range to exclude that cell.
Numbers look right but are flagged by a small green triangle. That is Excel telling you the number is stored as text. Select the cells, click the warning icon and choose Convert to Number.
Frequently Asked Questions
Can MIN and MAX work on more than one range?
Yes. Separate each range with a comma inside the brackets, for example =MAX(B2:B10,D2:D10). Excel evaluates all the ranges together and returns the single highest value.
Why does MAX ignore blank cells?
Blank cells are not numbers, so MIN and MAX skip them. That is why the result is 0 when the whole range is empty. If you need blanks treated as zero, use MAXA or replace the blanks with zeros first.
Do MIN and MAX work with text values?
Plain MIN and MAX ignore text entirely. The MAXA and MINA variants count text as 0 and logical values as 1 or 0, so use them only when that behaviour is intended.
What is the difference between MIN and SMALL?
MIN returns the lowest value in a range; SMALL returns the k-th smallest, where k is the second argument. =SMALL(B2:B25,1) is the same as MIN.
Can I find the highest value in a filtered list?
Use SUBTOTAL or AGGREGATE, which respect hidden rows, instead of a plain MAX. Alternatively, copy the filtered visible cells to a new sheet and run MAX there.
Why does the result show a hash or a row of ######?
The column is too narrow to display the number. Widen it by double-clicking the column border. The formula itself is calculating correctly.