Skip to main content

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


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 30 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:

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 300 handy Excel add-ins, free to try with no limitation in 30 days. Download and free trial Now!

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


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!
Comments (3)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
thank you very much, it worked well with me !
This comment was minimized by the moderator on the site
Thanks a lot.. very awesome tool.. it helped me
This comment was minimized by the moderator on the site
Thanks... :)
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations