Formula for comparing text in two workbooks

G

Guest

I have a wkbk with first names, last names, street. Another workbook has
first names, last names. I would like to compare the two and if both columns
match, I need to insert the street.
I have the following to tell me if there is a match
=IF(SUMPRODUCT(('[!ID.xls]all'!$B$2:$B$541=E11)*('[!ID.xls]all'!$C$2:$C$541=K11)), "Match", "Need to ID")
 
F

Frank Kabel

Hi
try the following array formula (entered with CTRL+SHIFT+ENTER):
=IF(SUMPRODUCT(('[!ID.xls]all'!$B$2:$B$541=E11)*('[!ID.xls]all'!$C$2:$C
$541=K11)),INDEX('[!ID.xls]all'!$A$2:$A$541,MATCH(1,('[!ID.xls]all'!$B$
2:$B$541=E11)*('[!ID.xls]all'!$C$2:$C$541=K11),0)), "Need to ID")


--
Regards
Frank Kabel
Frankfurt, Germany

Bob said:
I have a wkbk with first names, last names, street. Another workbook has
first names, last names. I would like to compare the two and if both columns
match, I need to insert the street.
I have the following to tell me if there is a match:
=IF(SUMPRODUCT(('[!ID.xls]all'!$B$2:$B$541=E11)*('[!ID.xls]all'!$C$2:$C
$541=K11)), "Match", "Need to ID")
 
G

Guest

Worked beautifully!

Thank you.

Frank Kabel said:
Hi
try the following array formula (entered with CTRL+SHIFT+ENTER):
=IF(SUMPRODUCT(('[!ID.xls]all'!$B$2:$B$541=E11)*('[!ID.xls]all'!$C$2:$C
$541=K11)),INDEX('[!ID.xls]all'!$A$2:$A$541,MATCH(1,('[!ID.xls]all'!$B$
2:$B$541=E11)*('[!ID.xls]all'!$C$2:$C$541=K11),0)), "Need to ID")


--
Regards
Frank Kabel
Frankfurt, Germany

Bob said:
I have a wkbk with first names, last names, street. Another workbook has
first names, last names. I would like to compare the two and if both columns
match, I need to insert the street.
I have the following to tell me if there is a match:
=IF(SUMPRODUCT(('[!ID.xls]all'!$B$2:$B$541=E11)*('[!ID.xls]all'!$C$2:$C
$541=K11)), "Match", "Need to ID")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top