Dec 02 2021 05:36 AM
Hello,
finding duplicate values is no problem but when comparing column A and column B and column B has multiple duplicate values of it's own it will count these as well as duplicates. How do I only compare column A and column B on duplicate values and ignoring duplicate values which are only found in the same column(B)?
So in the example we're looking for A,B,D,H and K in column B but the duplicates of per example value C in column B must be ignored.
Using the duplicate function will also highlight the duplicate values in column B which are not in column A.
Thanks
Dec 02 2021 05:54 AM
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))))
Dec 02 2021 11:04 AM
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)
Dec 02 2021 11:07 AM
Dec 02 2021 11:42 AM
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.
Dec 03 2021 08:13 AM
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?
Dec 03 2021 08:30 AM
If you import data from csv Power Query could do removing of duplicates naturally.
Dec 03 2021 08:46 AM
Can you attach an excel file (.xlsx file) where the formula and the returned error message are shown?
I entered data from your original file (8220/BP, ADO1016C-2/C-RS/C, ADO1018C-2/CTPU-BP/C, CLAS2000/B and CLAS3000/B) and it seems to work.
Dec 04 2021 03:06 AM
I cannot get it saved, it keeps on giving an error message and then saving is blocked, but I used this formula in the file attached.
=AND(COUNTIF($B$1:$B$21866,B1)>=2,NOT(ISNA(VLOOKUP(B1,$A$1:$A$5,1,FALSE))))
Dec 04 2021 05:34 AM
@Fiona525 Perhaps if you change the formula to this:
=AND(COUNTIF($B$1:$B$21866,B1)>=2,NOT(ISNA(VLOOKUP(B1,$A$1:$A$316,1,FALSE))))
See attached.
Otherwise, consider @Sergei Baklan 's suggestion and use PowerQuery for such tasks.
Dec 04 2021 07:27 AM
Dec 04 2021 07:43 AM
@Fiona525 Dat is duidelijk! PQ wordt niet ondersteund op de Mac. Maar werkt de formule niet dan? Wat is het probleem?
Dec 06 2021 06:50 AM
Dec 06 2021 07:03 AM
@Fiona525 Maar je gebruikt de Nederlandse versie! Dan moet je toch Nederlandstalige functies gebruiken, en vermoedelijk ook " ; " tussen de verschillende argumenten. Gebruik zelf de engelse versie en ben dus net gewend aan de NL versie.