+ Reply to Thread
Results 1 to 2 of 2

Using Lookup instead of Index/Match for left lookup

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

    Using Lookup instead of Index/Match for left lookup

    Hi,

    I know the LOOKUP function in Excel is provided for backward compatibility. But isn't it a lot easier to use this function for left lookups instead of the Index/Match combination?

    See attached sheet. Just wondering ... Does LOOKUP still exist in XL 2007?

    cheers

    Teylyn
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    I like using that LOOKUP syntax, where appropriate.....but....it requires the LOOKUP range [B2:B5] to be in ascending order, if you can't guarantee that then INDEX/MATCH is the option to use

    .....also it can give a "Closest Match" which probably wouldn't be appropriate for your example. For instance if you change F2 to Maggie the LOOKUP won't return N/A it'll match with John and give a result of 675.

    If you do have a lookup range sorted in ascending order but want an exact match then this formula can be used

    =IF(LOOKUP(F2,B2:B5)<>F2,NA(),LOOKUP(F2,B2:B5,A2:A5))

    Which is a much faster formula than a VLOOKUP or INDEX/MATCH with exact match option

+ 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