Smart Systems for Home

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

How to Find the Maximum Value in Excel

· 6 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

To find the maximum value in Excel, use the MAX function: type =MAX(range) in an empty cell, replacing range with the cells you want to check (for example =MAX(A1:A10)), and press Enter. The cell shows the largest number in that range. For a quick visual check, select the range and look at the status bar at the bottom of the window, which displays the maximum automatically. This guide covers both methods, plus conditional maximums, common pitfalls, and fixes.

What You'll Need

  • Microsoft Excel on Windows, macOS, or the web (Excel for Microsoft 365, Excel 2019 or later, or Excel for the web). The steps below apply to all modern versions; menu labels can differ slightly by version, device, or region.
  • A worksheet containing the numbers you want to evaluate. The range can be a column, a row, or a block of cells.
  • An empty cell where the result will appear.

Step-by-Step

  1. Open your workbook and locate the column or row of numbers you want to check. For example, suppose your values are in cells A2 through A20.
  2. Click an empty cell where you want the maximum to appear, such as B1 or D2. Avoid placing the formula inside the range you are evaluating, because that would create a circular reference.
  3. Type the formula =MAX( and then select the range with your mouse, or type it directly. For example: =MAX(A2:A20). The opening parenthesis must come immediately after MAX.
  4. Close the parenthesis and press Enter. The cell now displays the largest numeric value in that range.
  5. Verify the result by scanning the range or using the status bar method below. If the number looks wrong, check for text-formatted numbers (see Common Mistakes).
  6. For a quick check without a formula, select the range of cells. Look at the status bar at the bottom of the Excel window; it shows Average, Count, and Sum by default. Right-click the status bar and enable Maximum (and Minimum if you like) so the largest value appears there automatically.
  7. To find a maximum that meets a condition, use MAXIFS (Excel 2019 and later, Microsoft 365, and Excel for the web). The syntax is =MAXIFS(max_range, criteria_range, criteria). For example, =MAXIFS(B2:B20, A2:A20, "North") returns the largest value in B2:B20 where the corresponding cell in A2:A20 equals North. In older Excel versions without MAXIFS, use an array formula such as =MAX(IF(A2:A20="North", B2:B20)) entered with Ctrl+Shift+Enter (Command+Shift+Enter on Mac).
  8. To find the position of the maximum (for example, which row holds the largest value), use =MATCH(MAX(A2:A20), A2:A20, 0). This returns the relative position of the maximum within the range, which you can combine with INDEX to retrieve a label from another column.
  9. To ignore errors in the range, use =AGGREGATE(14, 6, A2:A20, 1). The 14 tells Excel to use the LARGE function, 6 ignores errors, and 1 returns the first largest value. This is useful when some cells contain #N/A or #DIV/0!.

Common Mistakes

  • Numbers stored as text. If a number is formatted or entered as text, MAX ignores it. Look for a green triangle in the corner of the cell or left-aligned numbers. Fix by selecting the cells, clicking the warning icon, and choosing Convert to Number, or by using Data > Text to Columns and clicking Finish.
  • Including the formula cell in the range. If your MAX formula sits inside the range it references, Excel returns a circular reference warning and may show 0. Move the formula outside the range.
  • Forgetting that MAX ignores blanks and logical values. Empty cells and TRUE/FALSE values in a referenced range are skipped. If you need to treat blanks as zero, use MAX with a helper column or IF logic.
  • Using MAX instead of MAXIFS for conditions. Plain MAX cannot filter by category. Use MAXIFS (or the array formula in older versions) when you need the largest value for a subset.
  • Typing the range incorrectly. A missing colon (A2A20) or a reversed range (A20:A2) causes errors or unexpected results. Always use the colon between the start and end cell.
  • Expecting MAX to work across multiple sheets with 3D references in all versions. 3D references like =MAX(Sheet1:Sheet3!A1:A10) work in modern Excel, but behavior can vary; test on your version or consolidate the data first.

Tips

  • Use Ctrl+Shift+Enter only for legacy array formulas; in Microsoft 365, dynamic arrays handle most cases with a normal Enter.
  • Name your ranges (Formulas > Define Name) so formulas read clearly, for example =MAX(Sales) instead of =MAX(B2:B200).
  • Combine MAX with conditional formatting to highlight the largest value: select the range, go to Home > Conditional Formatting > Top/Bottom Rules > Top 10 Items, and set it to 1.
  • Use =LARGE(range, n) to find the second, third, or nth largest value when you need more than the single maximum.
  • Press F4 after selecting a range in the formula to toggle absolute references ($A$2:$A$20) if you plan to copy the formula.
  • Check the status bar customization by right-clicking it; enabling Maximum gives you an instant answer without writing a formula.

Troubleshooting

  • The formula returns 0. This usually means the range contains no numeric values (all text or blank). Check for text-formatted numbers and convert them.
  • You see #VALUE!. The range may include an error value or an unsupported argument. Use AGGREGATE as shown above, or clean the data first.
  • You see #NAME?. The function name is misspelled (for example MAXIF instead of MAXIFS) or MAXIFS is not available in your Excel version. Use the array formula alternative.
  • The result seems too low. Hidden rows are still included in MAX; if you need to exclude them, filter the data and use SUBTOTAL with function number 104, or use AGGREGATE with the appropriate option.
  • Circular reference warning. Move the formula cell outside the referenced range, or adjust the range to exclude it.
  • MAXIFS returns 0 unexpectedly. Check that the criteria range and max range are the same size, and that the criteria text matches exactly (watch for extra spaces).

Frequently Asked Questions

What is the difference between MAX and MAXA?

MAX ignores logical values and text in a range; MAXA includes logical values (TRUE counts as 1, FALSE as 0) and text representations of numbers. Use MAX for typical numeric data and MAXA only when you need those values counted.

Can MAX work across multiple non-adjacent ranges?

Yes. Separate each range with a comma inside the parentheses, for example =MAX(A1:A10, C1:C10, E1:E10). Excel evaluates all listed ranges and returns the largest value among them.

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

Use =SUBTOTAL(104, range) or =AGGREGATE(14, 5, range, 1). Both ignore rows hidden by a filter, unlike MAX, which includes all rows.

Why does MAX return a date instead of a number?

Dates in Excel are stored as serial numbers. If the result cell is formatted as a date, MAX returns the latest date in the range. Change the cell format to General or Number to see the serial value.

Does MAX work with text values?

MAX ignores text entirely. If you need the alphabetically last text value, use =MAX is not suitable; instead use an array formula with MATCH or sort the data. For mixed data, MAXA may help but still does not return text.

Can I use MAX in Excel for the web?

Yes. MAX, MAXIFS, and AGGREGATE are supported in Excel for the web. The status bar maximum option is also available there, though right-click customization may differ slightly by browser.