+ Reply to Thread
Results 1 to 5 of 5

If column one matches and column two matches then return column 3

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-24-2009
    Location
    London, UK
    MS-Off Ver
    Excel 2007
    Posts
    178

    If column one matches and column two matches then return column 3

    Hi all,

    I have been trying to do what is described in the title but cannot do it! I have been trying to do if vlookups match or something but I cannot get it to work - does anyone have any ideas?

    Columns 1 and columns 2 in my source data have various different pairs. If my pair exists as a pair in the first table then I want the third value to be returned.

    Thanks

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: If column one matches and column two matches then return column 3

    Could you post a small sample of your data please?

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,183

    Re: If column one matches and column two matches then return column 3

    =INDEX($C$1:$C$6,MATCH(E1&F1,$A$1:$A$6&$B$1:$B$6,0))

    where E1 and F1 contain the two search values to be combined. Adjust th eranges as required.

    Array entered with Ctrl-Shift-Enter rather than just Enter


    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    07-08-2009
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003
    Posts
    142

    Re: If column one matches and column two matches then return column 3

    Hi,

    when I have a similar situation, I concatenate the values & then I try Vlookup

    Regards
    Mani

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

    Re: If column one matches and column two matches then return column 3

    a non array entered version of index match is
    =INDEX($C$1:$C$6,MATCH(E1&F1,INDEX($A$1:$A$6&$B$1:$B$6,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