Remove Duplicates function is introduced form MS Excel 2007, You can use RemoveDuplicates method to remove the duplicate records in Excel 2007 and higher. We will also see the example for deleting the duplicates for the data with and without column headers.
#EXCEL FIND DUPLICATE VALUES AND DELETE HOW TO#
Example to show you how to delete duplicate records from Excel Worksheet.
#EXCEL FIND DUPLICATE VALUES AND DELETE CODE#
Just select a cell in the range and convert the range into a table.įilter this table for showing only the duplicate values.VBA code to remove duplicate Rows in Excel: Example Macros to delete duplicate records from worksheet in MS Excel 2003, 2007, 2010, 2013. Now you can delete these duplicate values manually or converting this range into an Excel table. So, we get only 6 original values and 7 duplicate values. I press Enter and drag down the formula for all the cells in the column. Under column C, we add a new header as ‘Find Duplicates’ and use the following formula in cell C2: Going to apply the formula on the same data set as we used in our first example. Let’s now remove duplicates using the formula. If you want to know more about this function, check out this page. Before working with the main formula, let’s take a look at COUNTIFS () function’s syntax and uses.ĬOUNTIFS () function returns the total number occurring from multiple ranges based on multiple criteria. This is an interesting way if you like to do things with Excel formulas. 4 duplicate values found and removed 9 unique values remain in the range.Ĥ) Removing duplicates using Excel formula So, I just unselect the checkmark on the left side of the ‘Sales’.ģ) Setup is done. But we want to exclude our ‘Sales’ column from this criterion. Column D will not affect this filtering.įor example, row 5, row 9, and row 13 are duplicates though their Sales column has different values ($5200, $6000, $7000).įollow these steps to remove these types of duplicates.ġ) Select a cell in the range => Data tab => Data Tools ribbon => click on the Remove Duplicates command button.Ģ) ‘Remove Duplicates’ dialog box appears. And I want to remove duplicate rows based on columns A, B, and C. In the following image, you’re seeing some dummy data. You have some columns and you want that finding and removing duplicates will happen based on some specific columns, not based on every column in the range.
Related Readings 1) Remove duplicate rows based on two columns (Using ‘Remove Duplicates’ feature)Ĭheck out the following data.