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!


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
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.