Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel MAX Function: How to Find the Highest Value

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The MAX function in Microsoft Excel returns the largest number from a set of values or a range of cells. Type =MAX(A1:A10) into an empty cell and press Enter, and Excel displays the highest number in that range, ignoring blanks, text and logical values inside the referenced cells. That one line is the whole answer for most everyday use. The rest of this guide covers how to point MAX at the right data, how to combine it with conditions through MAXIFS, and the traps that make MAX return zero or an error when you expected a real number.

What You'll Need

  • A copy of Excel for Windows, Mac, the web or mobile, or any current Excel-compatible spreadsheet app. MAX is a long-standing built-in function, so version differences are minimal, though menu labels can differ slightly by version, device or region.
  • A worksheet with numeric data you want to evaluate, ideally with a clear header row so you know what each column means.
  • If you plan to use MAXIFS or MAXA to handle conditions or non-numeric entries, a version of Excel that supports them (Excel 2019 and later, Microsoft 365, or Excel for the web).

Step-by-Step

  1. Click an empty cell where you want the result to appear. A cell below or beside your data usually reads best, for example directly under a column of numbers.
  2. Type the formula: =MAX( and then select the range with your mouse, or type it by hand, such as =MAX(B2:B50). Range references separate the start and end cell with a colon.
  3. Close the bracket and press Enter. Excel evaluates every number in the range and returns the largest one. The result updates automatically whenever the source numbers change.
  4. Check the answer makes sense. Scan the column manually or sort it in descending order to confirm the value you got is really the highest. If MAX returns 0 but the column clearly holds positive numbers, jump to the Troubleshooting section before trusting the result.
  5. Point MAX at several separate ranges or numbers if you need to. The function accepts multiple arguments separated by commas, for example =MAX(B2:B20, D2:D20, 500). Excel compares all of them together and returns the single largest value, including the literal 500 in this example.
  6. Use MAXIFS when you need a condition. If you want the highest sale in one region only, the formula looks like =MAXIFS(C2:C100, A2:A100, "North"), where the first range holds the values to compare and the second range holds the criteria. Add more range/criteria pairs to narrow it further. This works in modern Excel versions; older copies may show a #NAME? error because the function did not exist there.
  7. Use MAXA if your range mixes numbers with text that looks numeric. MAXA counts logical values and text representations of numbers, with TRUE counting as 1 and text as 0, so it does not silently skip those cells the way MAX does. Use it only when you deliberately want that behaviour.
  8. Copy the formula across or down if you have several columns or groups. Drag the fill handle, or copy and paste. Use absolute references such as $B$2:$B$50 if the range must stay fixed while the formula moves, and relative references if the range should shift with each row.
  9. Label the result. Put a short text label in the neighbouring cell, such as "Highest monthly total", so anyone reading the sheet later understands what the number represents.

Common Mistakes

Numbers stored as text. This is the single most common reason MAX returns 0. Cells that look like numbers but are aligned to the left and carry a green warning triangle are text. MAX ignores them entirely. Convert them with a quick re-entry, the Text to Columns feature on the Data tab, or by multiplying the range by 1 in an empty column and pasting the results back as values.

Selecting the header row. If your range includes the header cell, no harm is done because MAX skips text, but including it hides the fact that you may have misjudged the range. Select only the data cells.

Hiding errors in the range. If any cell in the range contains an error such as #DIV/0! or #N/A, MAX returns that error instead of the maximum. Fix the source error or wrap the formula in IFERROR only when you are sure a missing value should be ignored.

Assuming MAX sees filtered-out rows. MAX does not respect filters. It evaluates every cell in the range, including rows hidden by a filter. To get the maximum of only the visible rows, use the SUBTOTAL function with function number 104, which ignores hidden rows, or AGGREGATE.

Confusing MAX with LARGE. MAX gives you the single top value. If you need the second, third or tenth highest, use =LARGE(range, n) instead.

Using MAX across non-adjacent cells without checking. Typing =MAX(A1 A5) with a space instead of a comma causes an error. Separate arguments with commas, never spaces.

Expecting MAX to work on text. MAX returns text alphabetically last only when you use MAXA on text values, and even then the rule is about logical ordering, not what most people expect. For the alphabetically last word in a list, use a different approach entirely.

Tips

Press Ctrl+Shift+Enter only if you are working in an old version that requires array formulas; modern Excel handles MAXIFS and multi-range MAX without it. If you paste a formula and see curly braces around it, that is a legacy array formula sign, not an error.

Use Formula AutoComplete: type =MAX and the function list appears, so you can arrow down to MAX or MAXIFS and press Tab to insert it with the opening bracket already typed.

Combine MAX with MIN in a summary block to show the range of your data at a glance. A small dashboard showing highest, lowest and average is far more useful than the maximum alone.

Name your ranges. Select the data, type a name into the Name Box to the left of the formula bar, and you can then write =MAX(SalesQ1). Named ranges are easier to audit and survive row insertions better than fixed addresses.

If your data grows regularly, convert it to an Excel Table with Ctrl+T. Formulas that reference table columns expand automatically as new rows are added, so MAX keeps working without you editing the range.

To find what the maximum actually is, combine MAX with MATCH and INDEX. =INDEX(A2:A50, MATCH(MAX(B2:B50), B2:B50, 0)) returns the label from column A that belongs to the highest number in column B, which is often more useful than the raw figure.

Troubleshooting

MAX returns 0. Check whether the cells are text. Select the range, look at the status bar at the bottom of the window: if it shows a count of numbers, the data is numeric; if it only shows a count, everything is text. Re-enter or convert the values.

MAX returns #VALUE!. One of your arguments is malformed, often a stray space, a missing comma, or a reference to a cell that contains text in the criteria position of MAXIFS.

MAX returns #NAME?. The function name is misspelled, or you are using MAXIFS in an Excel version that does not support it. Type =MAX and check the autocomplete list to see which functions your copy recognises.

MAX returns an unexpected number. Inspect the range for values you forgot about, such as a stray total row at the bottom of the column. Totals inside a range that already sums the same data will always dominate the maximum.

The formula will not update. Check that calculation is set to Automatic on the Formulas tab in the Calculation Options group. If it is set to Manual, press F9 to recalculate.

MAXIFS returns the wrong row. Confirm the criteria range and the value range have exactly the same number of rows and start on the same row. A mismatch of one row throws every comparison off, which is easy to miss when the ranges look similar.

Frequently Asked Questions

Does MAX ignore blank cells?

Yes. Blank cells, text and logical values inside a range are skipped, so MAX simply compares the numeric entries that remain. If the range holds no numbers at all, MAX returns 0.

What is the difference between MAX and MAXA?

MAX counts only true numbers. MAXA also counts logical values and text that represents numbers, treating TRUE as 1 and ordinary text as 0. Use MAX unless you specifically need those cells included.

Can MAX return the highest value that meets a condition?

Not on its own. Use MAXIFS with a criteria range, or in older versions use an array formula combining MAX and IF entered with Ctrl+Shift+Enter. Every modern desktop and web version supports MAXIFS.

How do I find the highest value in a filtered list?

Use SUBTOTAL with function number 104, or AGGREGATE with the appropriate option, because both ignore rows hidden by a filter while MAX does not. This distinction matters whenever you present filtered results.

Why does MAX return a date instead of a number?

Dates in Excel are stored as serial numbers, so a column of dates returns the latest date as the maximum. That is expected behaviour. Format the result cell as a date to read it normally.

Can I use MAX across different worksheets?

Yes. Reference the sheet name before the range, for example =MAX(January!B2:B30, February!B2:B30). If a sheet name contains spaces, wrap it in single quotes, such as 'Q1 Sales'!B2:B30.