Comparing two columns in one Excel sheet, to two columns in another sheet, and if they match, copy data from another column

后端 未结 4 1559
死守一世寂寞
死守一世寂寞 2021-01-29 09:27

I\'ve been looking at using the Excel VLOOKUP function to accomplish this, but I\'m pretty unfamiliar with it.

I need to do the following:

On sheet one, column A

4条回答
  •  终归单人心
    2021-01-29 10:08

    try this:

    Put this formula on sheet1 column C:

    =VLOOKUP(CONCAT(A1,B1),Sheet2!A:D,4,0)
    

    You would need to have 4 columns on sheet2, the first column would need to be a CONCATENATE FORMULA like this:

    =CONCAT(B1,C1)
    

    The second column would be your first name, third column your last name and last column the corresponding email.

    How this formula work's?

     =VLOOKUP(**CONCAT(A1,B1)**,Sheet2!A:D,4,0)
    

    It's concatenating the first and last name on sheet1 and looking for it on Sheet2 on column A, if there's a match it will return the email cell value in sheet2 column D (column D index is 4).

    Hope this help you

提交回复
热议问题