Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
670 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 Answer

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...