Spotting MAX and MIN Values
Find the largest and smallest numbers in a range with MAX and MIN.
Spotting MAX and MIN Values is a free Excel Formulas Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
The Biggest and the Smallest
Once you've counted your data, a natural next question is: what's the highest value, and what's the lowest?
What was the best sales day? What's the cheapest item? The lowest test score?
Two simple functions handle this: MAX finds the largest number in a range, and MIN finds the smallest. Let's explore both.
Meet the MAX Function
MAX returns the largest number in a range.
Its shape matches the functions you already know:
- =MAX(range)
If A1:A5 holds 120, 95, 200, 150, 80, then =MAX(A1:A5) returns 200, the highest value present.
=MAX(A1:A5)Meet the MIN Function
MIN is the mirror image of MAX. It returns the smallest number in a range.
- =MIN(range)
Using the same data 120, 95, 200, 150, 80, the formula =MIN(A1:A5) returns 80, the lowest value.
Together, MAX and MIN describe the full span of your numbers.
=MIN(A1:A5)What They Ignore
Like COUNT, both MAX and MIN look only at numbers. They quietly ignore:
- Blank cells
- Text values such as "N/A"
So if A1:A5 holds 120, "N/A", (blank), 200, 80, then MAX returns 200 and MIN returns 80. The text and blank cause no trouble.
=MAX(A1:A5)A Worked Example
You track daily temperatures in column B from B2 to B8 for a week: 18, 21, 19, 24, 22, 20, 17.
To find the warmest day: =MAX(B2:B8) returns 24.
To find the coldest: =MIN(B2:B8) returns 17.
Two short formulas instantly summarize the week's extremes.
=MIN(B2:B8)Negative Numbers
MAX and MIN handle negative numbers naturally. Remember that a smaller negative is actually lower.
If a range holds -5, 3, -10, 8, then =MAX(...) returns 8 and =MIN(...) returns -10.
This is useful for things like profit-and-loss columns where some values dip below zero.
=MIN(A1:A4)Finding the Range Spread
Subtracting MIN from MAX gives you the spread, the distance between the highest and lowest values.
For temperatures in B2:B8:
- =MAX(B2:B8) - MIN(B2:B8)
With our week of data this returns 24 - 17 = 7 degrees. The spread tells you how variable your data is.
=MAX(B2:B8) - MIN(B2:B8)Multiple Ranges and Values
Both functions accept several ranges and individual values, separated by commas.
Say your sales are split across two columns. To find the single best day overall:
- =MAX(A2:A30, C2:C30)
You can even mix in a number, like =MAX(A2:A30, 100), to set a floor the result can't fall below.
=MAX(A2:A30, C2:C30)A Practical Scenario
You manage a product catalog with prices in column D from D2 to D50.
For a summary box, you want both the cheapest and most expensive item:
- =MIN(D2:D50) shows the lowest price.
- =MAX(D2:D50) shows the highest price.
These two cells now give shoppers an instant price range for your catalog.
=MAX(D2:D50)Works in Excel and Sheets
MAX and MIN are standard functions that behave the same in Microsoft Excel and Google Sheets.
The formulas =MAX(range) and =MIN(range) return identical results in both tools.
Later you'll meet LARGE and SMALL, which can find the 2nd or 3rd highest value, but for the single biggest and smallest, MAX and MIN are all you need.
=MIN(D2:D50)Combining With Other Functions
MAX and MIN often appear inside larger formulas. A common trick is using MAX to keep a result from going negative.
For example, =MAX(0, A1 - B1) returns the difference between A1 and B1, but never less than zero.
If A1 is 50 and B1 is 70, the raw subtraction would be -20, but MAX pulls it up to 0. This is a tidy way to floor a value.
=MAX(0, A1 - B1)Quick Check
Test your understanding of MAX and MIN.
Recap: MAX and MIN
You can now pinpoint the extremes in any range. Key points:
=MAX(range)returns the largest number.=MIN(range)returns the smallest number.- Both ignore blank cells and text, and handle negatives correctly.
=MAX(range) - MIN(range)gives the spread of your data.- They accept multiple ranges and values, and work the same in Excel and Sheets.
You've completed the COUNT family and the MAX/MIN pair. Great work counting and summarizing your data.
=MAX(D2:D50)Frequently asked questions
Is the “Spotting MAX and MIN Values” lesson free?
Yes — the full text of “Spotting MAX and MIN Values” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.
What will I learn in “Spotting MAX and MIN Values”?
Find the largest and smallest numbers in a range with MAX and MIN. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Excel Formulas Academy?
No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Spotting MAX and MIN Values” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Excel Formulas Academy lesson?
Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Counting Numbers With COUNT
- Counting Anything With COUNTA
- Finding Empty Cells With COUNTBLANK
- Spotting MAX and MIN Values