Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to remove both duplicate rows in Excel?

doc remove both duplicates 1

Sometimes, you may merge two lists from two files into one column of the worksheet, after merging the data, there are some duplicate values are displayed. But, now, you would like to remove both the duplicate records which including the original one, and leave only the unique values that do not have any duplicates at all as following screenshot shown. This article, I will talk about some quick ways for solving this task in Excel.

Remove both duplicate rows in Excel with helper column

Remove both duplicate rows in Excel with Kutools for Excel


Select all duplicate values and remove them at once:

With Kutools for Excel’s Select Duplicate & Unique Cells feature, you can quickly select the unique or duplicate values in a range, and then do other operations you need, such as shade, delete, copy them and so on…

doc remove both duplicates 15 15

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!



In Excel, you can create a formula in a helper column, and then filter by this new column to filter all the duplicate values and delete them at once. Please do with following steps:

1. Enter this formula: =IF(COUNTIF($A$1:$A$14,A1)=1,0,1) into a blank cell besides your data, B1 for example, and then press Enter key.

Note: in the formula, $A$1:$A$14 is the original data range you want to remove the duplicates, and A1 is the first cell in your data range. You can change them to your need.

2. Then select cell B1, and drag the fill handle down to the cells that you want to contain this formula, and you can see all the duplicate cells are displayed as the number 1, and unique cells are displayed as the number 0, see screenshot:

doc remove both duplicates 3

3. And then click Data > Filter, and a drop down list button appears in cell B1, see screenshot:

doc remove both duplicates 4

4. Then click the drop down list button and only check the number 1 under the Select All option, see screenshot:

doc remove both duplicates 5

5. And all the duplicate values are filtered out, see screenshot:

doc remove both duplicates 6

6. (1.)If you want to remove the values, you can just press the Delete key to remove all of them, and only leave the unique values as following screenshot shown:

doc remove both duplicates 7

(2.) If you want to remove the entire duplicate rows, select the visible entire rows, and choose Delete Row from the right clicking menu, and only the unique rows are kept. See screenshots:

doc remove both duplicates 8  2 doc remove both duplicates 9

7. After removing the duplicate records, you can delete the contents in column B as you need.

Note: If there is a unique value in your first row, after filtering, it will be locate there as well, when you delete the filtered duplicate values, please skip this row.


Here also is handy tool--Kutools for Excel, with its Select Duplicate & Unique Cells feature, you can finish the following operations quickly and easily:

Remove duplicate rows but keep the first record

Find duplicate rows in a range

Remove everything but duplicate rows

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days

After installing Kutools for Excel, please do as this:

1. Select the data range that you want to use.

2. Click Kutools > Select > Select Duplicate & Unique Cells, see screenshot:

doc remove both duplicates 10 10

3. In the Select Duplicate & Unique Cells dialog box, choose All duplicates (Including 1 st one) under the Rule section, then click Ok > OK to close the dialogs, and all the duplicates have been selected at once, you can press Delete key to remove them, see screenshots:

doc remove both duplicates 11 11  2 doc remove both duplicates 12 12  2 doc remove both duplicates 13 13

Note: If you need to remove the whole rows of the duplicate values, please check Select entire rows in the Select Duplicate & Unique cells dialog box, and all the duplicate rows are selected immediately, then click Home > Delete > Delete Sheet Rows, and all the duplicate rows will be removed.

doc remove both duplicates 14 14

Click to know more about this Select Duplicate & Unique cells feature.

Download and free trial Kutools for Excel Now !


Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.