Find the Largest Number, Slowest Time, Longest Distance, or Highest Temperature

The MAX function always finds the largest or maximum number in a list of values. However, depending upon the data and how that data is formatted, it can also be used to find:

The slowest time.The longest distance.The fastest speed.The latest date.The highest temperature.The greatest amount of money.

And while it is often easy to pick out the largest value in a small sample of integers, the task becomes more difficult for large amounts of data or if that data happens to be:

Negative numbers.Times measured in hundredths of a second.Currency exchange rates calculated to the ten-thousandths of a cent.Numbers formatted as fractions.

While the MAX function doesn’t change, its versatility in dealing with numbers in various formats is apparent and is one reason why the function is useful.

MAX Function Syntax and Arguments

A function’s syntax refers to the layout of the function and includes the function’s name, brackets, comma separators, and arguments. The syntax for the MAX function is =MAX( Number1, Number2, … Number255), where:

Number1 is required.Number2 (up to Number255) is optional.

The arguments, in parentheses, can be:

Numbers. Named ranges. Arrays. Cell references to the location of the data in a worksheet. Boolean values typed directly into the list of arguments.

If the arguments do not contain numbers, the function returns a value of zero. If an array, a named range, or a cell reference used in an argument contains empty cells, Boolean values, or text data, those cells are ignored by the function, as shown in the example in row 7 in the image below. In row 7, the number 10 in cell C7 is formatted as text (note the green triangle in the upper-left corner of the cell indicating that the number is stored as text). As a result, the function ignores it, along with the Boolean value (TRUE) in cell A7 and the empty cell B7. The function in cell E7 returns zero for an answer since the range A7 to C7 doesn’t contain any numbers.

MAX Function Example

Here’s how to enter the MAX function into cell E2 in the image example shown below. As shown, a range of cell references is included as the number argument for the function. One advantage of using cell references or a named range as opposed to directly entering the data is that if the data in the range changes, the results of the function automatically update without having to edit the formula. Options for entering the formula include:

Typing the formula containing the function =Max(A2:C2) into cell E2 and pressing Enter on the keyboard. Entering the arguments using the MAX function’s dialog box. Using the MAX function shortcut located on the Home tab of the ribbon.

MAX Function Shortcut

This shortcut to using the Excel MAX function is one of several standard Excel functions that have shortcuts grouped under the AutoSum icon on the Home tab of the ribbon. To use this shortcut to enter the MAX function: The answer -6,587,447 appears in cell E2 since it is the largest negative number in that row. If you select cell E2, the complete function =MAX(A2:C2) appears in the formula bar above the worksheet.