To Highlight and Remove Duplicates in Excel/Gsheet
To highlight duplicates in a single column:
- Select a column.
- For instance, select column A > Format > Conditional formatting.
- Under Format rules, open the drop-down list and select Custom formula is.
- Enter the Value for the custom formula, =countif(A1:A,A1)>1.
- Below Format rules, you can find Formatting styles, which lets you set a different colour for highlighted duplicates. To do that, hit the Fill colour icon and select your preferred shade.
- Once you’re finished, hit Done to highlight the duplicates in a single column.
- Similarly, if you have to do it for column C, the formula becomes, =countif(C1:C,C1)>1 and you do it so on for other columns as well.
To highlight duplicates across multiple columns
- Select multiple columns.
- For instance, select columns from B to E > click Format > click Conditional formatting.
- Under Format rules, open the drop-down list and select Custom formula is.
- Enter the Value for the custom formula, =countif(B1:E,B1)>1.
- Set a different colour for the highlighted duplicates by following the earlier steps if you wish to. Once you’re finished, hit Done.
- Similarly, if you want to select the duplicates for column M to P, then you replace B1 with M1 and E with P. The new formula becomes, =countif(M1:P,M1)>1.
- Besides, if you want to highlight duplicates for all the columns from A to Z, simply repeat the earlier steps and enter the Value for the custom formula, =countif(A1:Z,A1)>1.
To remove duplicates from a spreadsheet
- Select a column from where you want to remove the duplicates.
- Click Data > Remove duplicates.
- You will now see a pop-up. Tick the box next to Data has the header now > click Remove duplicates > click Done.
- You can repeat the steps for other columns as well.