<HTML
><HEAD
><TITLE
>LOOKUP</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="MINA"
HREF="r4922.html"><LINK
REL="NEXT"
TITLE="CEIL"
HREF="r4970.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="r4922.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="r4970.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="AEN4946"
><A
NAME="GNUMERIC-LOOKUP"
></A
>LOOKUP</A
></H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN4951"
></A
><H2
>Name</H2
>LOOKUP&nbsp;--&nbsp;</DIV
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN4954"
></A
><H2
>Synopsis</H2
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>LOOKUP(value,vector1,vector2)</PRE
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4956"
></A
><H2
>Description</H2
><P
>The LOOKUP function finds the row index of 'value' in @vector1 and returns the contents of value2 at that row index. If the area is longer than it is wide then the sense of the search is rotated. Alternatively a single array can be used.</P
><P
>If LOOKUP can't find @value it uses the next largest value less than value. The data must be sorted. </P
><P
>If @value is smaller than the first value it returns #N/A</P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4961"
></A
><H2
>Examples</H2
><P
></P
><P
></P
></DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN4965"
></A
><H2
>See also</H2
><P
>        <A
HREF="r6216.html#GNUMERIC-VLOOKUP"
>VLOOKUP</A
>
,         <A
HREF="r9078.html#GNUMERIC-HLOOKUP"
>HLOOKUP</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="r4922.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="r4970.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
NAME="GNUMERIC-MINA"
></A
>MINA</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-CEIL"
></A
>CEIL</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>