+ Reply to Thread
Results 1 to 4 of 4

Using VLOOKUP

  1. #1
    Forum Contributor
    Join Date
    08-20-2009
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2013
    Posts
    149

    Using VLOOKUP

    Hi all,

    I have a VLOOKUP function which currently searches the first column of a range of cells as per normal. However in my spreadsheet the result I am looking up is sometimes stored in column 2. Is there a way I can get a VLOOKUP to search the first 2 columns of data and return a value.

    Thanks,

    Luke
    Last edited by lukela85; 08-28-2011 at 05:15 AM.

  2. #2
    Registered User
    Join Date
    07-14-2011
    Location
    Ha Noi, Viet Nam
    MS-Off Ver
    Excel 2010
    Posts
    53

    Re: Using VLOOKUP

    Plz, post a sample file.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Using VLOOKUP

    you could do it like this
    =IF(ISNA(VLOOKUP(E1,A1:D20,4,FALSE)),VLOOKUP(E1,B1:D20,3,FALSE),VLOOKUP(E1,A1:D20,4,FALSE))
    or
    =INDEX(D1:D20,IF(ISNUMBER(MATCH(E1,A1:A20,0)),MATCH(E1,A1:A20,0),MATCH(E1,B1:B20,0)))
    Last edited by martindwilson; 08-28-2011 at 05:03 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Contributor
    Join Date
    08-20-2009
    Location
    Plymouth, England
    MS-Off Ver
    Excel 2013
    Posts
    149

    Re: Using VLOOKUP

    Thanks.

    As always it works perfectly for what I need

+ 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