+ Reply to Thread
Results 1 to 4 of 4

Lookup function

  1. #1
    Registered User
    Join Date
    12-26-2009
    Location
    Lahore
    MS-Off Ver
    Excel 2003
    Posts
    2

    Lookup function

    Hello fox,
    Please help me in this issue, i am trying to take price of chemical form a dropdonw in excel, but my lookup function is not working fine. Please see attached file.
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    re: Lookup function

    Hi alisherwani,

    welcome to the forum

    LOOKUP() requires the data lookup table to be sorted ascending in order to provide the best result, but even then it will return the next approximate value if the match is not found.

    My suggestion would be

    =VLOOKUP(D25,D7:E23,2,FALSE)

    With the FALSE parameter in the VLOOKUP you ensure that only exact matches are returned. (FALSE means: approximate lookup = False)

    hth

  3. #3
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717

    re: Lookup function

    For the LOOKUP function to work correctly, the data being looked up must be sorted

    your data is not sorted, use vlooup instead

  4. #4
    Registered User
    Join Date
    12-26-2009
    Location
    Lahore
    MS-Off Ver
    Excel 2003
    Posts
    2

    re: Lookup function

    @teylyn,
    Thanks a lot, it's really working.

    Thanks again,

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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