Lookup/match value in a different worksheet, and just return a yes

C

Chatnoir11

I have two worksheets with lists of customers. I'd like to lookup each
company on worksheet A and see if it is also on Worksheet B. If it is, then I
just want an "X" or a 1 or a simple response like that. I couldn't seem to
make a VLOOKUP work or MATCH. Should I create a column with "X" in it on
Worksheet B and have that column returned as the value on Worksheet A?
 
D

Dave Peterson

=isnumber(match(a1,sheet2!a:a,0))

Will return TRUE if there's a match. False if there is no match.
 
L

Lars-Åke Aspelin

I have two worksheets with lists of customers. I'd like to lookup each
company on worksheet A and see if it is also on Worksheet B. If it is, then I
just want an "X" or a 1 or a simple response like that. I couldn't seem to
make a VLOOKUP work or MATCH. Should I create a column with "X" in it on
Worksheet B and have that column returned as the value on Worksheet A?


Assuming your lists of companies are on column A in sheet A and in
column A in sheet B you may try this formula in cell B1 of sheet A.

=IF(ISERROR(MATCH(A1,B!A$1:A$1000,0)),"","X")

Copy down as far as you have data in sheet A column A.
Change the 1000 if you have more data in sheet B column A.

Hope this helps / Lars-Åke
 
C

Chatnoir11

PERFECT! I have never heard of that command before, but it will get used a
lot now! Thanks!
 

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