I am using Unique macro to get the duplicates from my data set and join it back to the main data to fetch all the duplicates. However, my ultimate goal is to identify the duplicates which occur only twice
For example, my data is (A,B,C,A,D,B,A,C,D,D,A,B)
my output should return (C,C,D,D) . it should ignore A,B as they are occurring more than twice.
Any suggestions on how to do it?