Return match result

G

gootroots

example:

book1 sheet1 contains non duplicate values in A1:A10

book2 sheet1 contains non duplicate values in A1:A10

I need a formula to reurn "record matched" or "record not matched" in book2
sheet1 in B1:B10

thank you if you can be of help!
 
J

Jacob Skaria

The below formula in Book2 sheet1 cell B1 and copy down as required

'If book1 and book2 are unsaved open workbooks then
=IF(COUNTIF([Book1]Sheet1!$A$1:$A$10,A1),"Record matched",
"Record not matched")


'If book1 and book2 are saved open workbooks then
=IF(COUNTIF([Book1.xls]Sheet1!$A$1:$A$10,A1),"Record matched",
"Record not matched")


If this post helps click Yes
 

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