+ Reply to Thread
Results 1 to 2 of 2

weird problem with LOOKUP function

  1. #1
    ab
    Guest

    weird problem with LOOKUP function

    Hi,

    This is my spreadsheet. Column C has the LOOKUP formula.

    A B C
    53 a a LOOKUP(A2,$A$2:$A$14,$B$2:$B$14)
    447 b b LOOKUP(A3,$A$2:$A$14,$B$2:$B$14)
    1 020 c c |
    1 906 d n |
    2 007 e n |
    1 876 f n |
    1 707 g g |
    1 549 h c |
    1 411 i c |
    1 292 j c |
    1 190 k c |
    1 102 m c |
    1 026 n c |

    The values in column C are supposed to be just the same as column B, but
    they are not. There is something hidden going on here which i cannot
    understand. I would appreciate any help.

    Thanks.

  2. #2
    Jerry W. Lewis
    Guest

    Re: weird problem with LOOKUP function

    Read Help for LOOKUP. The LOOKUP function assumes that column A is
    sorted in ascending order, which is not true in your case. If you use
    VLOOKUP, there is an optional final argument that can be used to request
    exact matches with unsorted data.

    Jerry

    ab wrote:

    > Hi,
    >
    > This is my spreadsheet. Column C has the LOOKUP formula.
    >
    > A B C
    > 53 a a LOOKUP(A2,$A$2:$A$14,$B$2:$B$14)
    > 447 b b LOOKUP(A3,$A$2:$A$14,$B$2:$B$14)
    > 1 020 c c |
    > 1 906 d n |
    > 2 007 e n |
    > 1 876 f n |
    > 1 707 g g |
    > 1 549 h c |
    > 1 411 i c |
    > 1 292 j c |
    > 1 190 k c |
    > 1 102 m c |
    > 1 026 n c |
    >
    > The values in column C are supposed to be just the same as column B, but
    > they are not. There is something hidden going on here which i cannot
    > understand. I would appreciate any help.
    >
    > Thanks.



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1