<HTML
><HEAD
><TITLE
>SUBTOTAL</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="PRICE"
HREF="r9262.html"><LINK
REL="NEXT"
TITLE="CLEAN"
HREF="r9322.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="r9262.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="r9322.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="AEN9282"
><A
NAME="GNUMERIC-SUBTOTAL"
></A
>SUBTOTAL</A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN9287"
></A
><H2
>Name</H2
>SUBTOTAL&nbsp;--&nbsp;</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN9290"
></A
><H2
>Synopsis</H2
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>SUMIF(function_nbr,ref1,ref2,...)</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN9292"
></A
><H2
>Description</H2
><P
>SUBTOTAL function returns a subtotal of given list of arguments. @function_nbr is the number that specifies which function to use in calculating the subtotal. The following functions are available:</P
><P
>1   AVERAGE</P
><P
>2   COUNT</P
><P
>3   COUNTA</P
><P
>4   MAX</P
><P
>5   MIN</P
><P
>6   PRODUCT</P
><P
>7   STDEV</P
><P
>8   STDEVP</P
><P
>9   SUM</P
><P
>10   VAR</P
><P
>11   VARP</P
><P
>This function is Excel compatible. </P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN9307"
></A
><H2
>Examples</H2
><P
></P
><P
>Let us assume that the cells A1, A2, ..., A5 contain numbers 23, 27, 28, 33, and 39.  Then</P
><P
>SUBTOTAL(1,A1:A5) equals 30.</P
><P
>SUBTOTAL(6,A1:A5) equals 22378356.</P
><P
>SUBTOTAL(7,A1:A5) equals 6.164414003.</P
><P
>SUBTOTAL(9,A1:A5) equals 150.</P
><P
>SUBTOTAL(11,A1:A5) equals 30.4.</P
><P
></P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN9317"
></A
><H2
>See also</H2
><P
>        <A
HREF="r7506.html#GNUMERIC-COUNT"
>COUNT</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="r9262.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="r9322.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
NAME="GNUMERIC-PRICE"
></A
>PRICE</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-CLEAN"
></A
>CLEAN</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>