MAX()

SyntaxMAX(number1,number2,...)

Definition. This function returns the largest value in an argument list.

Arguments

  • number1 (required) and number2 (optional). At least one and up to 255 arguments (30 in Excel 2003 and earlier versions) for which you want to find the maximum value

Background. Use the MIN() and MAX() functions to find the smallest or largest value in a data set.

Arguments can be numbers, empty cells, logical values, and numbers as text. Arguments that are error values or text that cannot be converted into numbers cause errors.

If an argument is an array or a reference, only numbers in that array or reference are used. Empty cells, logical values, or text in the array or reference are ignored. If you want to include logical values and text representations of numbers, use the MAXA() or MINA() function.

If the arguments contain no numbers, MAX() and MIN() return 0.

Example. You are the head of accounting and want to display the highest value in a table containing the sales of the past two years. The MAX() function returns the highest value from an unsorted data set, as shown in Figure 12-94.

The MAX() function finds the highest value in a table.

Figure 12-94. The MAX() function finds the highest value in a table.

Tip

To display the corresponding month, use conditional formats or the MATCH() and INDEX() functions.

See Also

DMAX(), MAXA(), MIN(), MINA()

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.31.125