<HTML
><HEAD
><TITLE
>MEDIAN</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.54"><LINK
REL="HOME"
TITLE="Gnumeric's user manual"
HREF="gnumeric.html"><LINK
REL="UP"
TITLE="Reference"
HREF="function-reference.html#AEN1187"><LINK
REL="PREVIOUS"
TITLE="MIN"
HREF="r3641.html"><LINK
REL="NEXT"
TITLE="FREQUENCY"
HREF="r3694.html"></HEAD
><BODY
CLASS="REFENTRY"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Gnumeric's user manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="r3641.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="r3694.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="AEN3665"
><A
NAME="GNUMERIC-MEDIAN"
></A
>MEDIAN</A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3670"
></A
><H2
>Name</H2
>MEDIAN&nbsp;--&nbsp;</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN3673"
></A
><H2
>Synopsis</H2
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>MEDIAN(n1, n2, ...)</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3675"
></A
><H2
>Description</H2
><P
>MEDIAN returns the median of the given data set.</P
><P
>Strings and empty cells are simply ignored. If even numbers are given MEDIAN returns the average of the two numbers in the middle. This function is Excel compatible. </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3679"
></A
><H2
>Examples</H2
><P
></P
><P
>Let us assume that the cells A1, A2, ..., A5 contain numbers 11.4, 17.3, 21.3, 25.9, and 40.1.  Then</P
><P
>MEDIAN(A1:A5) equals 21.3.</P
><P
></P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3685"
></A
><H2
>See also</H2
><P
>        <A
HREF="r4530.html#GNUMERIC-AVERAGE"
>AVERAGE</A
>
,         <A
HREF="r7506.html#GNUMERIC-COUNT"
>COUNT</A
>
,         <A
HREF="r9234.html#GNUMERIC-COUNTA"
>COUNTA</A
>
,         <A
HREF="r6238.html#GNUMERIC-DAVERAGE"
>DAVERAGE</A
>
,         <A
HREF="r9343.html#GNUMERIC-MODE"
>MODE</A
>
,         <A
HREF="r8823.html#GNUMERIC-SUM"
>SUM</A
>
      </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="r3641.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="gnumeric.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="r3694.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
NAME="GNUMERIC-MIN"
></A
>MIN</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="function-reference.html#AEN1187"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
NAME="GNUMERIC-FREQUENCY"
></A
>FREQUENCY</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>