Comparing two columns on sheet1 to two other columns on sheet2 and returning another column in sheet 2.

淺唱寂寞╮ 提交于 2019-11-27 08:53:38

问题


I want to compare sheets1(a small list of names) First Name(Column A) and Last Name(Column B) to sheets2(a much larger list of names) First Name(column B) and Last Name(Column C). If I can find a match, I want to return Column F(user's email) from sheet2 to Column C in sheet1. I have no problem doing it with 1 column but I am having a hard time figuring out how to do it with two columns.


回答1:


Use the following formula:

=INDEX(Sheet2!$F$1:$F$100,MATCH(1,INDEX((Sheet2!$A$1:$A$100=A1)*(Sheet2!$B$1:$B$100=B1),),0))


Sheet 2 for reference



来源:https://stackoverflow.com/questions/37122927/comparing-two-columns-on-sheet1-to-two-other-columns-on-sheet2-and-returning-ano

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!