Max
Returns the largest value in a set of values.
Syntax
MAX(number1, [number2], ...)
The MAX function syntax has the following arguments:
- Number1, number2, ... Number1 is required, subsequent numbers are optional. 1 to 255 numbers for which you want to find the maximum value.
Remarks
Arguments can either be numbers or names, arrays, or references that contain numbers.
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
If an argument is an array or reference, only numbers in that array or reference are used. Empty cells, logical values, or text in the array or reference are ignored.
If the arguments contain no numbers, MAX returns 0 (zero).
Arguments that are error values or text that cannot be translated into numbers cause errors.
Example
Set up a table with 1 column and 5 rows with these values:
10
7
9
27
2
Set up these fields:
Field 1: 3
Field 2: 7
Formula | Description | Result |
---|---|---|
=MAX([Table]![1][1]:[1][5]) | Largest of the numbers in the first five rows of Table | 27 |
=MAX([Table]![1][1]:[1][5],30) | Largest of the numbers in the first five rows of Table and 30 | 30 |
=MAX(5,[Field 1],[Field 2]) | Largest of the numbers in Field 1, Field 2, and 5 | 7 |
Updated almost 2 years ago