To have Excel remove all duplicate records from a data list or table, you follow these simple steps:
- Position the cell cursor in one of the cells of the data list or table.
- Click the Remove Duplicates command button on the Ribbon’s Data tab or press Alt+AM.
Excel selects all the cells in the data list while at the same time displaying the Remove Duplicates dialog box.
Using the Remove Duplicates dialog box to remove duplicate records from a data list.When this dialog box first opens, Excel automatically selects all the fields in the list (by placing check marks in the check boxes in front of their names in the Columns list box). When all the fields are selected and you click OK in this dialog box, Excel deletes only complete duplicates (in other words, copies) of the records in the list.
If you want the program to remove records where there’s any duplication of entries in particular fields (such as the ID No field), you remove the check marks from all the columns except for those whose duplication are sufficient reason for deleting the entire record (as described in Step 3). Otherwise, you proceed directly to Step 4.
- (Optional) Remove the check marks from all fields in the Columns list box except for those whose duplicates are reason for deleting the record.
If only one or two fields out of many need to be selected in the Columns list box, click the Unselect All button to remove the check marks from all field check boxes and then individually click the fields that can’t have duplicate entries.
- Click OK to have Excel close the Remove Duplicates dialog box and remove the duplicate records (rows) from the selected data list.