+ Reply to Thread
Results 1 to 4 of 4

index/match function as vlookup for 2 columns

  1. #1
    Registered User
    Join Date
    04-16-2011
    Location
    rotterdam, NL
    MS-Off Ver
    Excel 2007
    Posts
    7

    index/match function as vlookup for 2 columns

    Hello there !

    I've searched throughout the forum, did find some answers to my question and think I've learned how to use index/match formula.

    The thing is, there is still sth missing in my formula - it's really hard to explain it, so I will be really grateful if you can take a look at my working file - I bet that it won't take you more than 5 sec to see what is wrong with it

    So what I wanna do is get the value from column "C" in 1st sheet and place it in column "C" in the 2nd sheet only if values from both column "A" and "B" from 2nd sheet are the same as column "A" and "B" from 1st sheet - sounds a bit complicated, but looks very simple in the file

    Thanks a lot in advance
    Attached Files Attached Files

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: index/match function as vlookup for 2 columns

    chmielko,

    In sheet "worksheet" in cell C2 I put the following formula:
    Please Login or Register  to view this content.


    Then just copy down. I have attached a modified version of your workbook so you can see how it works.

    Hope that helps,
    ~tigeravatar
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-16-2011
    Location
    rotterdam, NL
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: index/match function as vlookup for 2 columns

    WOW thanks a lot ! works perfectly

    still a lot of learning infront of me I see !

    Cheers

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

    Re: index/match function as vlookup for 2 columns

    no need for indirect
    =INDEX('import from here'!$C$1:$C$1000,MATCH(A2&B2,INDEX('import from here'!$A$1:$A$1000&'import from here'!$B$1:$B$1000,0),0))
    "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

+ 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