How to check entries in a column for duplicates in Excel
For this example, we are going to implement a formula to check for duplicate entries while data is being entered into a column. To achieve this task, we will be using the COUNTIF function. Also, each time a duplicate entry is found, we will display a confirmation in an adjacent column. Here are the steps:
- We will be assuming that your data starts from A1.
- Click on cell B1 and enter the following formula: =IF(A2=”",”",IF(COUNTIF($A$2:A2,A2)>1,”Yes”,”No”))
- Use the fill handle to copy the formula down as far as is necessary.
Each time a duplicate entry is found, excel will display YES in the adjacent column. Of course, you can modify and apply this formula for your personal use. This tip should work in Excel 97, 2000, 2003 and 2007.