MAX (First, Other...) MAX (First; Other...)

First

The first number or array of numbers.

Other

Additional numbers or arrays of numbers.

Returns

Number Number

The largest number of the given numbers.

Returns the largest number of the given numbers. MAX (4, 22, - 4, 32) MAX (4; 22; - 4; 32) returns 32.

MAX only accepts numbers, or number arrays. Use MAXA instead of you also need to evaluate logical values and text strings representing numbers. Use MAXIFS to only consider values satisfying one or several conditions.

Examples

MAX (4, 22, - 4, 32)
MAX (4; 22; - 4; 32)

Returns 32.

MAX (4, 22, - 4, BLANK (), 32)
MAX (4; 22; - 4; BLANK (); 32)

Returns 32. Blank values are ignored.

MAX ({ 4, 22, - 4, 32 })
MAX ({ 4; 22; - 4; 32 })

Returns 32. Arrays are supported.

MAX (4, 22, {  - 4, 32 })
MAX (4; 22; {  - 4; 32 })

Returns 32. Arrays mixed with regular numbers are supported.

MAX (4, 22, {  BLANK (), - 4, 32 })
MAX (4; 22; {  BLANK (); - 4; 32 })

Returns 32. Arrays mixed with regular numbers are supported. Blank values are ignored.

MAX (First, Other...) MAX (First; Other...)

First

The first temporal value or array of temporal values.

Other

Additional temporal values or arrays of temporal values.

Returns

Temporal Temporal

The latest of the given temporal values.

Returns the latest of the given temporal values. MAX (StartDate, EndDate) MAX (StartDate; EndDate) returns whichever of the two dates is the later one.

This overloaded function accepts temporal values, or arrays of temporal values. Use MIN instead to obtain the earliest of a number of temporal values.

Examples

MAX (StartDate, EndDate)
MAX (StartDate; EndDate)

Returns whichever of the two dates is the later one.

MAX ( DATE (2024, 1, 1), DATE (2024, 6, 1))
MAX ( DATE (2024; 1; 1); DATE (2024; 6; 1))

Returns a temporal value representing June 1, 2024.

fxEngine Shell Want this in your own terminal? A standalone version is coming. Get notified.
Loading fxEngine Shell