May this help youEnter following formula in C1=if(countif(A$1:A$30000,C1)>1,"y","n")Copy the same uuto C30000Select c1:c30000Select copySelect paste specialSelect valuesSort entire data on column c