?
Solved

Excel compare columns

Posted on 2011-03-24
5
Medium Priority
?
317 Views
Last Modified: 2012-05-11
I have two columns with a list of email addresses, A and B

How can I do a compare to see if each address in column A is in column B, so print out in column C something like "Found" or Not Found", I'm guessing I can use vlookup but get errors on the ones that are not found, so need a IF or something.

Thanks,
0
Comment
Question by:bt707
  • 3
5 Comments
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 2000 total points
ID: 35207145
=if(isna(vlookup(.....)),"Not found","Found")
0
 

Author Closing Comment

by:bt707
ID: 35207151
Thanks for the quick help!!
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 35207155
or maybe

=if(isna(vlookup(.....)),"Not found",vlookup(.....))
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 35207158
Thanks for the quick grading
0
 
LVL 11

Expert Comment

by:JoeNuvo
ID: 35207187
error?
do you mean #NA ?

if that is a case, uses something like

=IF(ISNA(VLookup(.....)) , VLookup(.....), "not found")
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This article describes a serious pitfall that can happen when deleting shapes using VBA.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question