ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Find and mark duplicates (https://www.excelbanter.com/excel-discussion-misc-queries/24445-find-mark-duplicates.html)

maxtrixx

Find and mark duplicates
 
If I have two columns with data, how do I compare these two columns to find
all duplicates and put an X on a third colum next to all duplicates? Thanks.

N Harkawat

=if(a1=b1,"X","")

"maxtrixx" wrote in message
...
If I have two columns with data, how do I compare these two columns to
find
all duplicates and put an X on a third colum next to all duplicates?
Thanks.




maxtrixx

The problem is, I don't know which two cells to compare, I need to know if
any of the 800 items in the first colum exist in the 600 items of the second
column. It's not a row by row comparison. Thanks.

"N Harkawat" wrote:

=if(a1=b1,"X","")

"maxtrixx" wrote in message
...
If I have two columns with data, how do I compare these two columns to
find
all duplicates and put an X on a third colum next to all duplicates?
Thanks.





David McRitchie

hi ...maxtrixx...
You are correct that answer will not work, I suggest you
look at Chip Pearson's page on duplicates.
http://www.cpearson.com/excel/duplic...gingDuplicates

But here is the formula, which you can fill down with the fill handle.
C2: =IF(COUNTIF(B:B,A2),"x","") -- column A has a duplicate
D2: =IF(COUNTIF(A:A,B2),"x","") -- column B has a duplicate
---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"N Harkawat" wrote in message ...
=if(a1=b1,"X","")

"maxtrixx" wrote in message
...
If I have two columns with data, how do I compare these two columns to
find
all duplicates and put an X on a third colum next to all duplicates?
Thanks.







All times are GMT +1. The time now is 07:25 PM.

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