# Column comparation in different datasheet

Solved/Closed
Ruben - Mar 5, 2012 at 03:23 PM
Ruben - Mar 6, 2012 at 08:02 AM
Hello,

Hello,
I have one excel column A in datasheet 1 which has a list of names. In Column
A of datasheet 2 I have a much longer list of names. Some of the names are in both columns from both sheets. I am looking for a formula that will produce in column A of datasheet 3 the names that appear only in sheet 2.
Thanks for your help!!!

## 1 response

venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 811
Mar 6, 2012 at 04:59 AM
many ways of doing it. see are you happy with this

in sheet2 in B2 (row one is column headings in both sheets)

type this formula

=IF(ISERROR(A2=Sheet1!\$A\$2:\$A\$10),"NO","fYES")
while writing the formula take the cursor to sheet1 and draw it whole data range in column A so that
\$A\$2:\$A\$10
will be correct range.
convert these references to absolute ref
copy B2 down
easy way is
take the cursor to right bottom B2 when cursor changes into bold plus sigb
click that plus sign
now filter sheet according to column B criteria being "NO"
in the filtered data copy column A and paste it in sheet 3
Thank you a lot! you solved my problem. Best regards!