How to Remove Everything Only Keep Duplicate Rows in Excel

Sometimes we may meet duplicate rows exist in table. In previous tutorial we have taught you how to remove duplicate values in excel, this time we will introduce you the method to only keep duplicate rows in table.

Precondition:

Create a simple table. See screenshot below. Obliviously there are some duplicate values.

How to Remove Everything Only Keep Duplicate Rows 1

Method: Remove Everything but Only Keep Duplicate Rows by Formula & Filter Function


To look up duplicate values from the list we can apply COUNTIF function here.

Step 1: In cell B2 enter the formula =COUNTIF($A$2:$A$8, A2)=1. If data in A list is unique, then formula will return True, otherwise it returns False.

2

Step 2: Click Enter. We get FALSE for product S001, so it has a copy in the list.

How to Remove Everything Only Keep Duplicate Rows 3

Step 3: Drag down the fill handle till reach the end of the list.

How to Remove Everything Only Keep Duplicate Rows 4

Step 4: Click on B column, click Data in ribbon, then click on Filter in Sort & Filter group to create filter.

How to Remove Everything Only Keep Duplicate Rows 5 (14)

How to Remove Everything Only Keep Duplicate Rows 6

Step 5: Click small triangle button to load filter criteria. Check on True under Search section, then click OK.

How to Remove Everything Only Keep Duplicate Rows 7

Verify that only TRUE values are listed.

How to Remove Everything Only Keep Duplicate Rows 8

Step 6: Select the visible range except headers. Click Home in the ribbon, then click the small triangle belongs to Find & Select icon in Editing group, then select Go To Special option.

How to Remove Everything Only Keep Duplicate Rows 9

Step 7: On Go To Special dialog, check on Visible cells only option, then click OK.

How to Remove Everything Only Keep Duplicate Rows 10

Verify that visible cells in the table are selected automatically.

How to Remove Everything Only Keep Duplicate Rows 11

Step 8: On selected range, right click to load below options. Select Delete Row.

How to Remove Everything Only Keep Duplicate Rows 12

Step 9: On pops up message, click OK. Then entire sheet rows (visible rows) are deleted immediately.

How to Remove Everything Only Keep Duplicate Rows 13

Step 10: Click Data->Filter again to clear filter.

How to Remove Everything Only Keep Duplicate Rows 5 (14)

Verify that only duplicate rows are stayed.

How to Remove Everything Only Keep Duplicate Rows 15

Clear texts in B column, then table with only duplicate rows is displayed properly.

 

Related Posts

VLOOKUP Formula | Faster Trick with 2 VLOOKUPS
Faster VLOOKUP with 2 VLOOKUPS1

This post will guide you how to use 2 VLOOKUPS function to looking up data entries from a given range of cells in Microsoft Excel. VLOOKUP with 2 lookups can be faster than a single VLOOKUP in certain scenarios. The ...

Extract Unique Items From A List
Extract Unique Items From A List In Excel1

This post will guide you how to extract unique itmes from a given list in Microsoft Excel. How to create a newly formula to get unique values from a range cells in Excel. The unique list of items is the ...

Extract substring In Excel
Extract substring In Excel1

This post will guide you how to use Excel's MID function is a quick and easy way to extract pieces from your text. Use the Excel formula to extract a substring with MID. Note: If you want to extract just ...

How to Use 3D SUM Multiple Worksheets
3D sum multiple worksheets1

To sum a range of numbers is straightforward for most Excel users, but do you know how to establish a 3D reference to total the same range of numerous sheets. In this post, I will present the steps for this ...

Extract all the matches with helper Column
how to extract all matches with helper column1

With Excel's powerful functions IF, INDEX, and MATCH, we can find exactly what you're looking for with a few clicks of the mouse. This step-by-step tutorial will show how easy it is to extract data using these tools and more! ...

If Cell is This Value or That Value

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of logical test. If you want to see if a cell is A or B, and if one of ...

If Value is Greater Than A Certain Value
If Value is Greater Than A Certain Value 1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the logical test result. If you want to see if a value in one cell is greater than a specific value, ...

If Cell is Not Blank
If Cell is Not Blank 6

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

VBA Macro For VLOOKUP From Another Sheet
vba macro for vlookup from another sheet1

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...

If Cell is Blank
If Cell is Blank_1

IF function is frequently used in Excel worksheet to return you expect “true value” or “false value” based on the result of created logical test. If you want to see if a cell is blank or not, and leave some ...

Sidebar