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

Need it as an auditable file?

Ships inside the linked template — formula-driven, unlocked, audit-ready.

View template

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. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.

In Google Sheets

If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. 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. Here is the takeaway for “use max function in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.

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.