ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Comparing one column of names to another (https://www.excelbanter.com/excel-worksheet-functions/162650-comparing-one-column-names-another.html)

Kim

Comparing one column of names to another
 
I have two columns of names next to each other. I need to know which names
in column 1 are not in column 2, and have these listed in a 3rd column.
Please help.

Gary''s Student

Comparing one column of names to another
 
If A1 thru B5:

mike mike
joe joe
john john
trevor david
nigel george


then in C1 enter:
=IF(COUNTIF($B$1:$B$5,A1)=0,A1,"") and copy down to see:

mike mike
joe joe
john john
trevor david trevor
nigel george nigel

The only items in column C are in column A, but not in column B

--
Gary''s Student - gsnu200750


"Kim" wrote:

I have two columns of names next to each other. I need to know which names
in column 1 are not in column 2, and have these listed in a 3rd column.
Please help.



All times are GMT +1. The time now is 06:24 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com