Forum Discussion
Finding duplicate values in 2 different columns ignoring duplicate values in the same column
Are you looking for a rule for conditional formatting?
=AND(COUNTIF($B$1:$B$33,B1)>=2,NOT(ISNA(VLOOKUP(B1,$A$1:$A$5,1,FALSE))))
- Fiona525Dec 02, 2021Copper Contributor
Thanks for your reaction, this could work: ideally I'm looking for a formula that deletes the complete rows of the values that are not containing duplicate values (see attachment)
- OliverScheurichDec 02, 2021Gold Contributor
With the suggested formula you can sort columns B and C by column C. The result is as shown in attached file. Then you can delete rows with result false in column C. After this the remaining data is the same as shown in columns F and G.
- Fiona525Dec 03, 2021Copper Contributor
Thank you, I tried it but my original file kept giving me the message that the formula wasn't right, maybe I'm missing something, I included the original data in a test sheet this time. Can you see what's going wrong?
- Fiona525Dec 02, 2021Copper ContributorPS in my original sheet a lot of other columns are filled with values so the example is simplified, to work good the whole row much be deleted 🙂