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 keep duplicate rows only in a column in Excel?

This article will show you methods of keeping duplicate rows only in a column in Excel.

Keep duplicate rows only with formula

Keep duplicate rows only with Kutools for Excel


arrow blue right bubble Keep duplicate rows only with formula


In this section, you can use formula to identify the unique and duplicate values in a column, and finally filter out all unique values. Please do as follows.

1. Select a blank cell, enter formula =COUNTIF(A:A, A2)=1 into the Formula Bar, and then press the Enter key. See screenshot:

2. Keep selecting the cell, drag the Fill Handle down until reaches the last cell of the list.

Notes:

1. In the formula, A:A is the column contains the duplicate values, A2 is the second cell of the list locating below the heading. You can change them based on your needs.

2. The result FALSE means the corresponding cell is duplicate in the list, and TRUE indicates unique.

3. Select the first cell of the result list, and then click Data > Filter.

4. Click the drop-down arrow, uncheck the TRUE box in the drop-down box, and then click the OK button.

5. Now all unique value cells are hidden immediately, and only the duplicate values are displaying in the list.

Note: If you want to remove all hidden unique cell rows, you can try the Delete hidden (Visible) Rows & Columns utility. See screenshot below.

Free downloading and installing Kutools for Excel now!


arrow blue right bubble Keep duplicate rows only with Kutools for Excel

After free installing Kutools for Excel  , with the Select Duplicate & Unique Cells utility of Kutools for Excel, you can easily select the entire rows of all unique cells, and then delete them at once.

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

1. Select the list you want to keep only duplicate rows, then click Kutools > Select > Select Duplicate & Unique Cells. See screenshot:

2. In the Select Duplicate & Unique Cells dialog box, select the Unique values only option, check the Select entire rows box, and finally click the OK button. See screenshot:

3. Then a dialog box pops up to tell you how many rows have been selected, please click the OK button.

4. Right click on the selected rows, and then click Delete from the right-clicking menu. See screenshot:

Now all unique cell rows are deleted and only the duplicate values kept.

If this utility is helpful, you can download and try the free trial now!


Recommended Productivity Tools for Excel

Kutools for Excel Helps You Always Finish Work Ahead of Time, and Stand Out From Crowd

  • More than 300 powerful advanced features, designed for 1500 work scenarios, increasing productivity by 70%, give you more time to take care of family and enjoy life.
  • No longer need memorizing formulas and VBA codes, give your brain a rest from now on.
  • Become an Excel expert in 3 minutes, Complicated and repeated operations can be done in seconds, 
  • Reduce thousands of keyboard & mouse operations every day, say goodbye to occupational diseases now.
  • 110,000 highly effective people and 300+ world-renowned companies' choice.
  • 60-day full features free trial. 60-day money back guarantees. 2 years of free upgrade and support.

Brings Tabbed Browsing and Editing to Microsoft Office, Far More Powerful Than The Browser's Tabs

  • Office Tab is designed for Word, Excel, PowerPoint and Other Office Applications: 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!
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.

Be the first to comment.