In Excel: use =MAX(range) — it returns the largest number in the range, ignoring text and blanks entirely.
On this page8
Syntax
Arguments
| Argument | required / optional | Description |
|---|---|---|
number1 | required | The first number, range or array. |
number2, ... | optional | Further values or ranges. Text, logicals and blanks are ignored. |
Related functions
Select the result cell and type =MAX(.
Select the range, or list several ranges and values separated by commas.
Press Enter.
If the answer is 0 and that looks wrong, check whether the numbers are stored as text.
What this does
MAX returns the largest numeric value among its arguments. Text, logical values and blanks are skipped rather than compared, which means a column of numbers stored as text returns 0 — a wrong answer that looks like a real one. A second use worth knowing is as a floor: =MAX(0, A2-B2) clamps a difference so it never goes negative, which is far shorter than the equivalent IF. For the largest value meeting a condition, use MAXIFS; for the second or third largest, use LARGE. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “excel min max function”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected formula change, and only then apply the same setup to the full sheet. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That is what makes a calculation you can defend to a CFO or an auditor useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
Daily traffic in B2:B400: =MAX(B2:B400) returns the peak day. Clamping a shortfall so it cannot go below zero: =MAX(0, Target-Actual). Finding the later of two dates, which are just numbers underneath: =MAX(A2, B2), formatted as a date. MAX is both the peak-finder and the standard way to clamp a value at a floor, which is why it shows up far outside pure statistics. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.
In Google Sheets
Google Sheets support for this task has not been verified. Check the function, arguments and workflow in the target product before transferring the example. Matching formula notation does not establish identical behaviour. The aim was to get you unstuck fast and leave you a little more capable than a copy-paste would. The answer is at the top and the detail above shows why it holds — so the next time a colleague asks, you can answer without reaching for search. For “excel min max function”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.
Common mistakes
- Numbers stored as text, which
MAXignores — returning 0 or an unexpectedly small value. - Using
MAXwhere a condition applies;MAXIFShandles "largest in the West" directly. - Wanting the second-largest and reaching for
MAXon a trimmed range instead of LARGE with k=2.
Frequently asked questions
Why does MAX return 0?
There are no numeric values in the range — usually because the numbers are stored as text. Convert them and MAX works.
How do I find the largest value meeting a condition?
Use MAXIFS: =MAXIFS(values, criteria_range, criteria).
How do I get the second-largest value?
=LARGE(range, 2). MAX only ever returns the top one.
Other ways people ask this
This is also commonly searched as “how to use min function in excel”, “max and min function in excel” and “max min function excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Why do people search for this in so many different ways?
Because the same task has many names. “how to use min function in excel”, “max and min function in excel”, “max min function excel” all point at the one operation explained on this page, which is why they all lead here.