Difference between revisions of "Documentation/How Tos/Calc: MAX function"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Initial content)
 
m (Syntax:)
Line 7: Line 7:
 
<tt>'''MAX(number1; number2; ... number30)'''</tt>
 
<tt>'''MAX(number1; number2; ... number30)'''</tt>
  
<tt>'''number1'''</tt> to <tt>'''number30'''</tt> are up to 30 numbers or ranges containing numbers.
+
: <tt>'''number1'''</tt> to <tt>'''number30'''</tt> are up to 30 numbers or ranges containing numbers.
  
 
=== Example: ===
 
=== Example: ===

Revision as of 06:33, 18 March 2008


MAX

Returns the maximum of a list of arguments, ignoring text entries.

Syntax:

MAX(number1; number2; ... number30)

number1 to number30 are up to 30 numbers or ranges containing numbers.

Example:

MAX(2; 6; 4)

returns 6, the largest value in the list.

MAX(B1:B3)

where cells B1, B2, B3 contain 1.1, 2.2, and apple returns 2.2.

See also:

MAXA, MIN, MINA, DMAX

Statistical functions

Issues:

  • Calc assumes that logical values are 1 (TRUE) and 0 (FALSE). Excel ignores logical values.
Personal tools