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

From Apache OpenOffice Wiki
Jump to: navigation, search
m (See also:)
m (Syntax:)
Line 7: Line 7:
 
<tt>'''TRIMMEAN(numberlist; fraction)'''</tt>
 
<tt>'''TRIMMEAN(numberlist; fraction)'''</tt>
  
: <tt>'''numberlist'''</tt> is a range or array of numbers, not necessarily in order. <tt>'''TRIMMEAN'''</tt> returns the mean, ignoring a <tt>'''fraction'''</tt> (0 <= <tt>'''fraction'''</tt> < 1) of the values in <tt>'''numberlist'''</tt> at the extremes.
+
: <tt>'''numberlist'''</tt> is a range or array of numbers, not necessarily in order. <tt>'''TRIMMEAN'''</tt> returns the mean, ignoring a <tt>'''fraction'''</tt> (0 <= <tt>'''fraction'''</tt> < 1) of the outmost values in <tt>'''numberlist'''</tt>.
  
 
: Specifically, where ''n'' is the count of numbers in <tt>'''numberlist'''</tt>, the highest and lowest INT(''n'' * <tt>'''fraction'''</tt> / 2) values are ignored.
 
: Specifically, where ''n'' is the count of numbers in <tt>'''numberlist'''</tt>, the highest and lowest INT(''n'' * <tt>'''fraction'''</tt> / 2) values are ignored.

Revision as of 19:17, 24 April 2008


TRIMMEAN

Returns the mean of a set of numbers, ignoring a proportion of high and low values.

Syntax:

TRIMMEAN(numberlist; fraction)

numberlist is a range or array of numbers, not necessarily in order. TRIMMEAN returns the mean, ignoring a fraction (0 <= fraction < 1) of the outmost values in numberlist.
Specifically, where n is the count of numbers in numberlist, the highest and lowest INT(n * fraction / 2) values are ignored.

Example:

TRIMMEAN(A1:A100; 0.1)

returns the mean of the values in cells A1:A100, ignoring the lowest 5 values and the highest 5 values.

See also:

AVERAGE, GEOMEAN, HARMEAN, MEDIAN, MODE

Statistical functions

Personal tools