What MAX does
MAX returns the largest number in a list, such as the best day of sales or the latest date. Give it a range like B2:B6, or several ranges separated by commas, and it returns the single biggest number among them. MIN does the opposite and returns the smallest.
Given separate values, it picks the bigger one, which makes it a floor. =MAX(0,B2-C2) means “B2 minus C2, but never below 0”: when the subtraction goes negative, 0 is larger and wins.
In a range, MAX looks only at numbers and skips empty cells and text.
Syntax
number1Required- The first number, cell or range to look at, usually a range like
B2:B6. number2Optional, can repeat- More numbers, cells or ranges, separated by commas, up to 255 in all. MAX returns the largest of everything you list.
Example: the best day of the week
Sales for one week are in B2 to B6.
To show which day it was, look the amount up with XLOOKUP: =XLOOKUP(B7,B2:B6,A2:A6) returns Wed.
Example: never order a negative amount
Each item should be topped up to the target stock in B1. When there’s already more than that on the shelf, the order should be 0, not a negative number. The formula in C4 is filled down to C6.
MAX with a condition: MAXIFS
For the largest value that meets a condition, such as the biggest order from one region, use MAXIFS. With regions in B2:B20 and order values in C2:C20:
- One condition:
=MAXIFS(C2:C20,B2:B20,"North")returns the largest North order. - Two conditions:
=MAXIFS(C2:C20,B2:B20,"North",D2:D20,"Online")looks only at North orders that came in online, with the sales channel in column D.
MAXIFS needs Microsoft 365 or Excel 2019 or later, and it returns 0 when no row matches. In Excel 2016 and earlier, =MAX(IF(B2:B20="North",C2:C20)) gives the same result when you confirm it with Ctrl+Shift+Enter (Cmd+Shift+Return on a Mac).
Common mistakes
- MAX shows 0 when the range holds no numbers, which looks like a real result. Make sure the range covers the data.
- Figures imported as text are skipped, so the largest one may be missing from the answer. They often sit at the left of the cell.
- “31/03/2026” typed into a cell that Excel didn’t recognize as a date is text, so MAX ignores it when looking for the latest date.
- One error in the range, such as
#N/Afrom a lookup, makes MAX show that error too. Fix the formulas that produce it, for example with IFERROR.
Frequently asked questions
Does MAX ignore blank cells and text?
Yes. In a range, MAX looks only at cells that hold numbers.
Why does MAX return 0?
MAX returns 0 when the range holds no numbers. Check that the range covers the data and that the figures aren’t stored as text, because MAX skips text even when it looks like a number.
How do I find the second largest value?
Use LARGE: =LARGE(B2:B6,2) returns the second largest number, =LARGE(B2:B6,3) the third.
How do I get the latest date in a list?
Dates are numbers in Excel, so =MAX(A2:A50) returns the latest one. Format the result cell as a date.
Can MAX stop a formula going negative?
Yes. Put 0 and the calculation inside MAX: =MAX(0,B1-B4) shows the difference, or 0 when the difference would be negative.