To find the maximum and minimum values in Excel, use the built-in MAX and MIN functions—enter them into a cell with the range of data you want to evaluate. These functions instantly scan numbers in your selected range and return the largest or smallest value, respectively. No add-ins or special setup are required; just ensure your data is numeric and contiguous where possible.
What You'll Need
- Microsoft Excel (any modern version: 2010, 2013, 2016, 2019, 2021, or Microsoft 365)
- A worksheet with numeric data (e.g., sales figures, test scores, temperatures)
- No special permissions or internet connection required
Step-by-Step
- Organize your data: Place your numbers in a single column or row (e.g., A1:A10). Avoid mixing text and numbers in the same range, as
MAXandMINignore text and blanks but may misbehave with logical values (TRUE/FALSE) or error cells. - Select the target cell: Click on the empty cell where you want the result to appear (e.g., B1 for the maximum, B2 for the minimum).
- Enter the MAX function: Type
=MAX(A1:A10)(replaceA1:A10with your actual data range), then press Enter. Alternatively, go to the Formulas tab > Function Library group > AutoSum dropdown > Max, then drag to select the range and press Enter. - Enter the MIN function: In another cell, type
=MIN(A1:A10)(same range as before), then press Enter. You can also use the AutoSum dropdown and choose Min instead. - Verify the result: Double-check by manually scanning your data (e.g., sort it) or using conditional formatting to highlight extremes—select the range > Home tab > Conditional Formatting > Top/Bottom Rules > Top 1 Items (for max) or Bottom 1 Items (for min).
Common Mistakes
- Including non-numeric cells: If your range contains text (like "N/A" or "Error"),
MAXandMINstill work, but they ignore those cells entirely. This can cause confusion if you expect them to flag errors. UseMAXAorMINAonly if you want text and FALSE to count as 0 (TRUE counts as 1). - Using the wrong range: Typing
=MAX(A1:A9)when your data ends at A10 will miss the last value. Always double-check the range references before pressing Enter. - Confusing MAX with LARGE or MIN with
SMALL:MAXandLARGE(array,1)return the same result, butLARGElets you get the 2nd, 3rd, etc., highest value. Similarly,MINandSMALL(array,1)match, whileSMALLsupports nth smallest. Don’t overcomplicate things if you only need the absolute extreme. - Forgetting to update ranges: If you insert new rows/columns within your data range, Excel may not adjust the formula automatically. Right-click the cell > Format Cells > Protection tab (indirectly) or use structured references in tables to avoid this.
Tips
- Convert your range to a table (Select data > Ctrl + T > check My table has headers) and use
=MAX(Table1[Sales]). This ensures the function auto-expands when you add new rows. - Use IF with MAX/MIN for conditional extremes: To find the maximum value only for rows meeting a criterion (e.g., sales > $1000), use an array formula like
=MAX(IF(A2:A20>1000,B2:B20))and press Ctrl + Shift + Enter (in older Excel versions). In Excel 365, use=MAXIFS(B2:B20,A2:A20,">1000")directly. - Combine with FILTER for dynamic results: In Excel 365,
=MAX(FILTER(B2:B20,A2:A20="Region1"))returns the max sales for Region1, even if the list changes size. - Highlight outliers visually: After calculating max/min, apply Conditional Formatting > New Rule > Format only cells that contain > Cell Value > equal to > type
=MAX($A$2:$A$10)(for max highlights) or=MIN($A$2:$A$10)(for min). Use bright colors for quick visual checks.
Troubleshooting
If your MAX or MIN function returns an unexpected value or error, follow these checks:
- #NAME? error: This means Excel doesn’t recognize the function name. Verify you typed
MAXorMINcorrectly—no typos likeMXorMINM. Also, ensure Excel’s calculation mode isn’t set to Manual (go to Formulas tab > Calculation Options > select Automatic). - 0 returned unexpectedly: If your range has only text or blanks,
MAXreturns 0 (since it ignores non-numbers). Confirm your data range includes actual numbers by selecting the range and checking the status bar at the bottom; it should display Average, Count, and Sum with numeric values. - Incorrect extreme value: If the result is clearly wrong, check for hidden rows or filtered data.
MAXandMINinclude hidden rows in calculations. To exclude them, useSUBTOTALinstead:=SUBTOTAL(4,A2:A10)for max (4 = MAX) or=SUBTOTAL(5,A2:A10)for min (5 = MIN). - Formula doesn’t update: If you change a value in the range but the result stays the same, press F9 to force recalculation, or go to Formulas > Calculation > Calculate Sheet. Also, ensure no cells are formatted as text—select the range, go to Home > Number group > choose General or Number.
Frequently Asked Questions
Can MAX and MIN handle negative numbers?
Yes. MIN will correctly return the most negative value (e.g., in the range -5, 2, -10, 3, =MIN(A1:A4) gives -10). MAX returns the largest algebraic value (e.g., 3 in the same range).
Do MAX and MIN work with dates?
Yes—Excel stores dates as sequential serial numbers (e.g., January 1, 1900 = 1). So =MAX(A1:A10) returns the latest date, and =MIN(A1:A10) returns the earliest, assuming the cells are formatted as dates.
What’s the difference between MAX and MAXA?
MAX ignores text, blanks, and logical values. MAXA treats text as 0, TRUE as 1, and FALSE as 0. Use MAXA only if your dataset includes logical flags (e.g., TRUE/FALSE) you want numerically factored in.
How do I find the maximum value across multiple sheets?
Use a 3D reference: =MAX(Sheet1:Sheet3!A1:A10) calculates the max across Sheet1, Sheet2, and Sheet3 for the same range. Ensure all sheets are contiguous (no gaps) in the workbook tab order.
Can I find the cell address of the maximum or minimum value?
Not directly with MAX or MIN, but combine them with INDEX and MATCH. For max: =INDEX(A1:A10,MATCH(MAX(A1:A10),A1:A10,0)) returns the value; for its address, use =ADDRESS(MATCH(MAX(A1:A10),A1:A10,0)+ROW(A1)-1,COLUMN(A1)) (adjust as needed).
Why does my MIN function return 0 when all values are positive?
This usually means your range includes a zero or a negative number you didn’t notice. Check for hidden zeros (e.g., cells with formula results like =IF(A1="","",A1) returning 0). Use Ctrl + G > Special > Constants to see all numeric entries.