MAX and MIN Formula in Excel

There are two ways to “max and min formula 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 =MIN(range) — it returns the smallest number in the range, and doubles as a ceiling: =MIN(100, A2) caps a value at 100.

On this page8

Syntax

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

Arguments

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

Related functions

MAXSMALLMAXIFS and MINIFS
▤Annotated stepsExcel
1

Select the result cell and type =MIN(.

2

Select the range, or list the values to compare separated by commas.

3

Press Enter. Format the result as a date if the inputs were dates.

4

To cap rather than find a minimum, put the cap first: =MIN(cap, value).

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

What this does

MIN returns the smallest numeric value among its arguments, skipping text, logicals and blanks. Its second life is as a cap: =MIN(cap, value) is the standard way to limit a figure without an IF, and pairing it with MAX brackets a value between two bounds in one readable expression. Because dates are stored as numbers, MIN also finds the earliest date in a range. Blank cells are ignored rather than treated as zero, which is usually what you want but does mean an empty column returns 0. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “max and min formula in excel”. Start on a copy or a tiny sample, keep the affected formula visible, and compare the result with the outcome you expected before you touch the real workbook. 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. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.

A worked example

Order dates in A2:A500: =MIN(A2:A500) returns the earliest date once the cell is formatted as a date. Capping a commission at 5,000: =MIN(5000, Sales*0.03). Bracketing a score between 0 and 100: =MIN(100, MAX(0, A2)). MIN finds the floor of a dataset and imposes a ceiling on a calculation, and the second use appears in more real formulas than the first. 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. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. For “max and min formula 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

  • Expecting blanks to count as zero — they are skipped, so the smallest actual number is returned instead of 0.
  • Forgetting to format the result when the inputs were dates, which shows a serial number.
  • Using MIN on text-stored numbers, which ignores them and returns 0.

Frequently asked questions

How do I find the earliest date?

=MIN(range) over the date column, then format the result cell as a date — dates are numbers underneath.

How do I cap a value at a maximum?

=MIN(cap, value). Combine with MAX to bracket both ends: =MIN(100, MAX(0, A2)).

Does MIN ignore zeros?

No — an explicit zero is a number and can be the minimum. Only blanks and text are skipped.