MAX: find the best day

Lesson 3 of 54

MAX returns the largest number in a range and MIN the smallest. They ignore text and blank cells.

In cell D2, write a formula that finds the highest number of Visitors in column B.

D2
ABCD
1DayVisitorsBest day
2Monday412
3Tuesday388
4Wednesday530
5Thursday497
6Friday455

Type in the formula bar above and press Enter to check.

Skip

How MAX and MIN work

Syntax

=MAX(range)    =MIN(range)
range
One or more ranges or numbers, separated by commas.

Example

Order dates are in B2:B500 and you want the first and the most recent order.

=MIN(B2:B500)   and   =MAX(B2:B500)

Dates are numbers underneath, so MIN gives the earliest date and MAX the latest. Format the cells as dates.

Common mistakes

  • Numbers stored as text are skipped, so MAX can miss the real top value.
  • MIN returning 0 because of empty cells counted as zero in a calculated column. Use MINIFS(B:B, B:B, ">0").

Questions people ask

How do I find the maximum with a condition?

Use MAXIFS: =MAXIFS(D:D, A:A, "North") returns the largest value for North.

How do I find the second largest?

Use LARGE: =LARGE(B2:B100, 2).

Practice it above: type the formula in the formula bar and press Enter to check.