Multiple Column vs Multiple Column Lookup

前端 未结 4 576
北荒
北荒 2020-12-19 14:38

I am after a formula to match a number of columns between two worksheets and return the last reference worksheets final column data. I know this is doable in VBA, but am loo

4条回答
  •  不知归路
    2020-12-19 15:12

    Here's a simple example of multi-column MATCH (the kind of approach which often shows up when searching for this type of formula):

    In E10:

    =IFERROR(INDEX(E3:E5,MATCH(B10&C10&D10,$B$3:$B$5&$C$3:$C$5&$D$3:$D$5,0),1),"No Match")
    

    Be sure to use Ctrl+Shift+Enter when entering the formula.

    Posting this to note that it has an issue you should be aware of: the example above matches on:

     B | Two | Blue
    

    but it will also match on:

     BT | wo | Blue
    

提交回复
热议问题