Skip to main content

Kutools for Office — One Suite. Five Tools. Get More Done.

How to remove both duplicate rows in Excel?

Author Xiaoyang Last modified

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.

a screenshot of the original data range and the data range after removing both duplicate rows


Remove both duplicate rows in Excel with helper column

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:

a screenshot of a helper column checking if values are unique with formula

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

a screenshot of enabling Filter for the helper column

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

a screenshot of checking the number 1 in the Filter

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

a screenshot of all numbers 1 filtered in the helper column

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:

a screenshot that leave only unique values within the original data range

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

a screenshot of selecting the Delete Row option after right-clicking on the selected visible rows a screenshot of an arrow a screenshot showing only unique values within the original data range

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.


Remove both duplicate rows in Excel with Kutools for Excel

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

After downloading and 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:

a screenshot of enabling the Select Duplicate & Unique Cells feature of Kutools for Excel

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:

a screenshot of configuring the dialog box a screenshot of a right arrow a screenshot of duplicate values being selected a screenshot of a right arrow 2 a screenshot of selected duplicate values being deleted

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.

a screenshot showing how to delete sheet rows in Excel

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

Download and free trial Kutools for Excel 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
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

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...


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!

All Kutools add-ins. One installer

Kutools for Office suite bundles add-ins for Excel, Word, Outlook & PowerPoint plus Office Tab Pro, which is ideal for teams working across Office apps.

Excel Word Outlook Tabs PowerPoint
  • All-in-one suite — Excel, Word, Outlook & PowerPoint add-ins + Office Tab Pro
  • One installer, one license — set up in minutes (MSI-ready)
  • Works better together — streamlined productivity across Office apps
  • 30-day full-featured trial — no registration, no credit card
  • Best value — save vs buying individual add-in