MAX and MIN return the largest and smallest number from a range of cells. The shortest working version is =MAX(A1:A10) for the highest value and =MIN(A1:A10) for the lowest. Type either formula into an empty cell, replace the range with your own, and press Enter. That is all it takes to pull the two numbers out of a column of data without sorting or scanning it by eye.

The functions are old, stable and identical across Excel for Windows, Excel for Mac, Excel for the web, and the mobile apps, so the steps below apply everywhere unless noted. Where a ribbon label is mentioned, wording can differ slightly between versions, platforms and regions, so look for the closest match.

A quick note on what they do and do not see: MAX and MIN look only at cells containing numbers. Text, blanks and logical values typed directly into cells are ignored, which is usually what you want but occasionally surprises people. If you need to include hidden text-like numbers or force different behaviour, there are variants covered below.

What You'll Need

  • A list, column or row of numbers in an Excel workbook (typed in, pasted in, or linked from another sheet).
  • An empty cell to hold the result. Put it outside the range you are measuring, otherwise the formula will try to include itself and Excel will flag a circular reference.
  • Basic familiarity with typing a formula: start with = and press Enter.
  • Optional: column headers, so you can confirm you are pointing at the correct column before copying the formula down.

Step-by-Step

  1. Pick the data range. Click the first number in your list and note the cell address in the Name Box at the top left, then scroll to the last number and note its address. For example, numbers in A2 down to A50 means your range is A2:A50.
  2. Choose a result cell. Click an empty cell below or beside the data, for example A52, or on a separate summary sheet. Avoid typing the formula inside the range itself.
  3. Start the MAX formula. Type =MAX( and then drag over the range with the mouse, or type the range directly. Excel will show the range in colour as you drag, which is a quick way to confirm you have included every row.
  4. Close the bracket and press Enter. The formula reads =MAX(A2:A50). The cell now shows the highest number in that range.
  5. Add the MIN formula. In the cell below, type =MIN(A2:A50) and press Enter. You now have the lowest value.
  6. Check the result against the data. Sort a copy of the column, or use the filter dropdown on the header, to confirm the top and bottom numbers match. This takes seconds and catches almost all wrong-range errors.
  7. Make the range absolute if you plan to copy. If you will fill the formula across to other columns, change A2:A50 to $A$2:$A$50 by pressing F4 after selecting the range inside the formula, or type the dollar signs. On Mac, the shortcut may be different depending on your keyboard settings; typing the dollar signs always works.
  8. Fill down or across as needed. Drag the small square at the bottom-right corner of the result cell, or copy the cell and paste it into the target cells. Relative references will shift by column or row; absolute ones will not.
  9. Format the result. If the answer shows as a date or a strange decimal, select the result cell, open the Number format dropdown on the Home tab and choose Number or Currency. MAX and MIN inherit the format of the cell they sit in, not the source data.

A worked example

Say column A holds daily electricity readings for January, with A1 as the header "kWh" and numbers in A2:A32. In D2 you type =MAX(A2:A32) and in D3 =MIN(A2:A32). D2 returns the single highest day, D3 the lowest. If D2 returns 0 when the readings are all above zero, the likely cause is one empty-looking cell that actually contains a zero, or a range that misses the real data. If D2 returns an error, jump to the troubleshooting section.

Which MAX and MIN variant to use

Excel offers several close relatives, and choosing the right one avoids most confusing results:

  • MAX / MIN ignore text, blanks and logical values in referenced cells. Use these for ordinary numeric columns.
  • MAXA / MINA count logical values and text representations of numbers stored in the range, treating TRUE as 1 and FALSE as 0. Use these only when you deliberately want that behaviour.
  • MAXIFS / MINIFS return the highest or lowest value that meets one or more conditions, for example the maximum for a single room or sensor while ignoring the rest. The syntax is =MAXIFS(max_range, criteria_range, criteria), and you can add further range/criteria pairs.
  • LARGE / SMALL return the second, third or nth highest or lowest value: =LARGE(A2:A50,2) gives the runner-up.

Common Mistakes

  • Leaving the range short. The most frequent error is a range that stops before the last row, often because rows were added after the formula was written. Resize the range, or convert the data to an Excel Table (Insert > Table) and use structured references so new rows are included automatically.
  • Numbers stored as text. Imported or pasted data often arrives as text, and MAX and MIN silently skip it. Look for numbers aligned to the left in the cell, or a green warning triangle. Fix with Data > Text to Columns, or multiply the column by 1 in an empty column and paste the values back.
  • A circular reference. Putting the formula inside the range it measures produces a warning and a result of 0. Move the result cell outside the range.
  • Expecting blanks or zeros to be ignored. Truly empty cells are ignored, but a cell containing 0 is a real value and will win the MIN calculation. Formulas that return "" (empty string) are also skipped by MAX and MIN.
  • Forgetting hidden rows. MAX and MIN include hidden rows and filtered-out rows. If you need only visible rows, use SUBTOTAL with function numbers 4 (MAX) or 5 (MIN), or AGGREGATE.
  • Wrong argument separator. Some regional Excel settings use a semicolon instead of a comma between arguments, so =MAXIFS(A2:A50,B2:B50,"Kitchen") becomes =MAXIFS(A2:A50;B2:B50;"Kitchen"). Match whatever your version inserts automatically.

Tips

  • Let Excel write the formula for you: with the result cell selected, the status bar at the bottom of the window shows Average, Count and Sum for any selected range, which is a fast sanity check before you commit.
  • If you only want a quick look without a formula, select the range and read the status bar, or right-click the status bar to add Maximum and Minimum to it.
  • Name your ranges with Formulas > Define Name, then write =MAX(JanuaryReadings) for a formula that is readable and immune to extended-row mistakes.
  • Combine MAX and MIN to get a range width: =MAX(A2:A50)-MIN(A2:A50) gives you the spread in one cell.
  • Use conditional formatting with a formula such as =A2=MAX($A$2:$A$50) to highlight the peak cell in place, which is easier to read than a separate summary cell.
  • When the result looks like a date, check the source column's format first; a plain number formatted as a date displays as a day, month and year instead of the actual figure.

Troubleshooting

The formula returns 0. Check for a zero in the range, a circular reference, or a range pointing at empty cells. Click the cell, look at the formula bar, and confirm the range contains the data you expect.

You get #VALUE!. An argument is not a number or a valid reference, often because a range was typed with a stray space or a text value was passed directly. Retrace the range with the mouse.

You get #NAME?. The function name is misspelled, or MAXIFS/MINIFS is not available in your version (they require a relatively recent Excel; older files and some other spreadsheet programs lack them). Use MAX with an array formula or a helper column instead.

You get #NUM!. The range is empty of numeric values, or a LARGE/SMALL argument is out of range (asking for the tenth-largest value in a list of five).

The answer misses numbers you can see. Those numbers are text. Confirm with the left-alignment check, then clean the column with Text to Columns or a paste-special multiply.

Numbers change when you add rows. Your range was fixed and does not cover the new rows. Widen it, switch to a Table, or use a whole-column reference such as A:A if the sheet has no stray numbers below the data.

Still wrong after all that. Recalculate with F9, check the workbook is not in manual calculation mode (Formulas > Calculation Options), and confirm you are looking at the correct sheet tab. If the file came from another system, verify the numbers are not stored with trailing spaces.

Frequently Asked Questions

Does MAX include text or blank cells?

No. MAX and MIN ignore text, blanks and logical values in referenced cells. Use MAXA and MINA if you want TRUE/FALSE and text-like numbers to count.

Can I find the max value that meets a condition?

Yes, with MAXIFS and MINIFS, for example =MAXIFS(A2:A50,B2:B50,"Kitchen"). They take a value range, then one or more criteria range and criteria pairs.

How do I get the second or third highest value?

Use LARGE and SMALL: =LARGE(A2:A50,2) for the second highest, =SMALL(A2:A50,2) for the second lowest.

Why does MAX ignore my numbers?

They are almost certainly stored as text. Numbers align left by default and may show a warning triangle. Convert them with Data > Text to Columns or by multiplying the column by 1.

Do MAX and MIN exclude filtered-out rows?

No, they include everything in the range, hidden or filtered. Use SUBTOTAL(4, range) for visible maximums and SUBTOTAL(5, range) for visible minimums.

Is there a limit on how many cells MAX can handle?

The range can be as large as the sheet, but very large ranges across whole columns slow recalculation. Point at the actual data block instead of entire columns if the workbook becomes sluggish.