How to Use the MAX Function in Excel

When working with large datasets in Microsoft Excel, finding the highest value manually can be tedious and prone to error. Whether you are identifying your top-performing salesperson, finding the highest temperature recorded in a month, or locating the maximum expense in a budget, the MAX function does the work for you instantly.

What is the MAX Function?

The MAX function is a built-in statistical formula in Excel designed to evaluate a range of numbers and return the single largest value. It ignores empty cells, text, and logical values (like TRUE or FALSE), focusing entirely on numeric data. This makes it an incredibly reliable tool for data analysis.

Step-by-Step: Using the MAX Function

Using the MAX function is straightforward once your data is organised.

  1. Select the empty cell where you want the highest value to appear.
  2. Type the equals sign followed by the function name and an open parenthesis: =MAX(
  3. Select the range of cells you want to evaluate. You can do this by clicking and dragging your mouse over the cells, or by typing the range manually (for example, B2:B100).
  4. Type a closing parenthesis ) and press Enter.
  5. Excel will instantly display the highest number from your selected range in that cell.

Advanced Usage: Comparing Multiple Ranges

The MAX function is not limited to a single continuous column or row. You can compare multiple, non-adjacent ranges or even specific numbers at the same time.

  • Non-adjacent cells: Separate different cells or ranges with a comma. For example, =MAX(B2:B50, D2:D50) will find the highest value across both columns.
  • Specific numbers: You can mix cell references and static numbers: =MAX(A1:A10, 500). If the highest number in A1:A10 is 450, Excel will return 500.

Troubleshooting Common Mistakes

If the MAX function is returning a zero or an unexpected result, check for these common issues:

  • Numbers stored as text: If your numbers were imported from another system, Excel might treat them as text strings. The MAX function ignores text. Highlight the problematic cells; if a small green triangle appears in the corner, click the warning icon and select Convert to Number.
  • Hidden rows: The standard MAX function evaluates all cells in the range, even if the rows are hidden. If you only want to find the maximum value of visible cells, you must use the SUBTOTAL function instead (specifically, =SUBTOTAL(104, range)).

Mastering basic statistical functions like MAX is a stepping stone to becoming highly proficient in Excel data analysis.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.