Why not copy the data from column B to the end of column A? Then set the conditional formatting for the column to select all elements whose count exceeds one. Use this formula " =countif($A$1:A1,A1)>1 " without quotes. Make sure that the entire column is selected.
Another way to maintain data sharing. In column C, use a formula like =IF(ISERROR(VLOOKUP(A1,$B$1:$B$100,1,0)),A1,"") ; change the ranges to fit the data ranges. Then fill in the formula to the end of the data in column A. To fill out, select the desired range and press "Cntl + D". Repeat this for column D, but replace the links A and B in the formula and fill them to the bottom of the data in column B. This will result in the data in columns C and D that enumerate unique values. Copy and paste these values, be sure to paste as values if the default paste is used. Excel inserts formulas, not data, into another set of columns (E and F) or the same columns, and then sorts each column to exclude spaces.
source share