Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
676 views
in Technique[技术] by (71.8m points)

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

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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))

enter image description here


Sheet 2 for reference

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...