+ Reply to Thread
Results 1 to 4 of 4

Lookup function

  1. #1
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280

    Lookup function

    Hi everybody,

    I have a problem with LOOKUP worksheet fucnction .. I used in a range of 10 cells .. in some of these cells it is returning a correct result .. but in other cells it is returning wrong result.

    the formuls I am using is the following:

    Please Login or Register  to view this content.
    I hope

    you can help me in this case,
    Last edited by LoveCandle; 07-30-2006 at 02:06 PM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Lookup only works correctly if your lookup range, in this case Report!$F$2:$F$51, is sorted in ascending order. This formula will also give you the "closest match" (next lowest) if an exact match isn't found.

    If you only require exact matches, you can have an unsorted lookup range but you should use VLOOKUP, i.e.

    =VLOOKUP("A2",Report!$F$2:$H$51,3,0)

  3. #3
    Ragdyer
    Guest

    Re: Lookup function

    Are you looking up the *value* "A2",
    Or are you looking up the contents of the cell A2?

    Is the data in F2 to F51 sorted in ascending order?
    --
    Regards,

    RD

    ---------------------------------------------------------------------------
    Please keep all correspondence within the NewsGroup, so all may benefit !
    ---------------------------------------------------------------------------
    "LoveCandle" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Hi everybody,
    >
    > I have a problem with LOOKUP worksheet fucnction .. I used in a range
    > of 10 cells .. in some of these cells it is returning a correct result
    > . but in other cells it is returning wrong result.
    >
    > the formuls I am using is the following:
    >
    >
    > Code:
    > --------------------
    > =LOOKUP("A2",Report!$F$2:$F$51,Report!$H$2:$H$51)
    > Code:
    > --------------------
    >
    >
    > I hope you can help me in this case,
    >
    >
    > --
    > LoveCandle
    > ------------------------------------------------------------------------
    > LoveCandle's Profile:

    http://www.excelforum.com/member.php...o&userid=28612
    > View this thread: http://www.excelforum.com/showthread...hreadid=566441
    >



  4. #4
    Forum Contributor
    Join Date
    11-07-2005
    Posts
    280
    Thank you everybody for your help,

    I think the solution for my problem is sorting the lookup range in ascending order.

    But, by this way I will have to change my table arrangement which I don't want to.. so I prefered to use another worksheet function/s like:

    Please Login or Register  to view this content.
    That formula worked perfectly with my case,

    Thank you again,

+ 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