How to Use MAX Function in Excel

There are two ways to “use max function in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: use =MAX(range) — it returns the largest number in the range, ignoring text and blanks entirely.

On this page8

Syntax

=MAX(number1, [number2], ...)

Arguments

Argumentrequired / optionalDescription
number1requiredThe first number, range or array.
number2, ...optionalFurther values or ranges. Text, logicals and blanks are ignored.

Related functions

MINLARGEMAXIFS and MINIFS
▤Annotated stepsExcel
1

Select the result cell and type =MAX(.

2

Select the range, or list several ranges and values separated by commas.

3

Press Enter.

4

If the answer is 0 and that looks wrong, check whether the numbers are stored as text.

Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

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. Keep the inputs visible and clearly labelled and the whole thing stays auditable — anyone who opens the file later, including you, can see at a glance exactly what feeds the result and change one assumption without hunting through the formula. Treat “use max function in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected formula shows up while it is still harmless. 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 turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.

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. Keep this page bookmarked for the next time the same question comes up. Better still, repeat the steps once in your own workbook — doing it yourself is what turns a copied answer into something you remember. For “use max function in excel”, 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 MAX ignores — returning 0 or an unexpectedly small value.
  • Using MAX where a condition applies; MAXIFS handles "largest in the West" directly.
  • Wanting the second-largest and reaching for MAX on 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 “excel max function” and “how do you use the max function in 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. “excel max function”, “how do you use the max function in excel” all point at the one operation explained on this page, which is why they all lead here.