Knowledge base / Excel
MAX in Excel: largest value, blanks, and conditions
I show you what MAX includes, how to find a group maximum, and why zero or a tie needs careful interpretation.

When I need the largest number in a column, I start with MAX. Before treating its result as a business answer, I check the range: numbers, text that looks numeric, blanks, or errors. A table that looks familiar can behave differently after an import. Here is a small example, a condition for one group, and several cases where the maximum alone tells you less than the report title might suggest.
Syntax and availability
The function is called MAX in both English and Polish Excel. English examples here use commas between arguments and a decimal point. Regional settings can change separators. Microsoft’s MAX documentation covers Microsoft 365 and editions including Excel 2016, 2019, 2021, and 2024.
=MAX(B2:B5)
=MAX(B2:B5,10)
The first formula searches the range. The second includes an additional value of 10. Be careful with that constant: adding a number “just in case” changes the question when you want the actual data maximum. A formula should not hide missing data or silently impose a minimum acceptable result. If that is the intended business rule, describe it explicitly and keep it distinguishable from the observed maximum.
A small table and an explainable answer
The following data are synthetic. Put the headers in A1:B1 and values in rows 2-5. The numbers represent closed cases over a comparable period.
| Group | Closed cases |
|---|---|
| North | 8 |
| South | 12 |
| North | 10 |
| South | 12 |
=MAX(B2:B5) returns 12, comparing 8, 12, 10, and 12. A tie does not alter that answer. MAX returns one number, without identifying the two matching rows. If you need records, add a separate operation that returns every relevant match rather than silently selecting one winner. A scalar maximum and a list of the records attaining it are different outputs.
The result also does not establish which group performs “best.” Staffing, case difficulty, and completeness of the period are unknown. The maximum answers a question about the largest observed value. A performance judgement needs a defined measure and comparison conditions. I would label the output with its measure and period rather than use a broader claim that the calculation cannot support.
Blanks and numbers stored as text
MAX ignores blanks, text, and logical values in references. A range containing -8, -3, and a blank has maximum -3. The blank does not become a zero that beats negative numbers. A range containing no numbers returns 0 instead. Check whether a displayed zero actually comes from a numeric observation before interpreting it as a measured result.
Where a value is supplied matters. Numeric text and logical values typed directly into the argument list follow different rules from those inside a referenced range. =MAX("12",8) returns 12, but a cell containing text 12 within a range is ignored. Do not use the literal example as evidence that imported text values will be converted automatically. Investigate the import and correct the intended data type first.
An error can prevent calculation. MAX is not a general error ignoring function. Before replacing errors with zero, inspect their source. A substituted zero would also change the meaning of an all negative dataset. A report should distinguish “the greatest observed number is zero” from “the calculation could not produce a valid answer.” That distinction matters more than making every cell look tidy.

A conditional maximum with MAXIFS
For North, I want to compare only 8 and 10. In a supported edition, I use:
=MAXIFS(B2:B5,A2:A5,"North")
The answer is 10. Supply the numeric range, the criterion range, and the condition. Microsoft documents MAXIFS for Office 2019 and Microsoft 365, as well as newer editions listed on the page. It is not a function of standalone Excel 2016. Check a recipient’s version when sharing a workbook that depends on it. The Polish function name is MAKS.WARUNKÓW.
The ranges must have the same size and shape. They should also describe corresponding records: B2:B5 and A3:A6 have equal dimensions but pair different rows. A syntactically valid formula cannot establish that this shift was intended. I begin by checking the first and last row in each range, then trace one qualifying record through both arguments.
No matching group can produce 0. Asking for an absent “East” group in this example does not establish that its activity was zero. Check whether it exists in the source. MAXIFS states the conditional calculation clearly in supported versions. An older workbook needs an approach chosen for its specific edition rather than copied array entry instructions without version context.
A screen filter and a formula range
Hiding rows through a filter does not automatically remove them from an ordinary MAX reference. For a visible records question, choose an operation that accounts for visibility, such as an appropriate SUBTOTAL variant. Do not label ordinary MAX as the filtered view’s result. Hiding South in this example does not change the declared B2:B5 range.
Before handing over a report, consider changing one value in a practice copy and state whether it should qualify. This helps clarify expectations about the range and condition. The same applies to appended rows: a reference ending at B5 does not automatically include values outside that reference. Inspect how the source expands in your workbook rather than assume that a fixed address follows every future addition.
Exercise: three separate questions
Write down the whole range maximum, the North maximum, and how many rows attain the global maximum. The answers are 12, 10, and two rows. Only the first two are answered by the formulas shown here; the third requires another operation. The distinction helps prevent a result description from promising information that its formula never returns.
Then consider a range without numbers and one containing negative numbers. Explain why their results need different interpretation from a casual “the maximum is zero.” For the opposite comparison, see MIN in Excel. To retrieve a ranked value rather than only the maximum, continue to LARGE.
Key takeaways
Does a blank make the maximum of negative numbers zero?
No. Blanks in a reference are ignored. Zero is returned when the arguments contain no numbers.
Is MAXIFS available in standalone Excel 2016?
No. Microsoft documents Office 2019, Microsoft 365, and newer listed editions.
Does MAX return every tied record?
No. It returns the largest number. Retrieving the records that attain it requires another operation.
AI was used in an automated way while working on this article. If you want to learn how to do it too, check out this project.
