How to Show/Keep Only Duplicate Values in Excel

 

Suppose we have one list of some fruits, and some of them are duplicate. If we want to only keep duplicate fruits and remove the unique ones, how can we do? This article will introduce you two methods to only keep duplicate values from a list in excel. The first method, you can use Conditional Formatting function in excel; the second one, you can use formulas with Filter function to keep duplicate values.

Precondition:

Prepare a list A. It contains some duplicate values. We want to keep these duplicate values and remove the others.

ShowKeep Only Duplicate Values 1

Method 1: Keep Duplicate Values by Conditional Formatting


Step 1: Select List A.

Step 2: Click Home in ribbon, click Conditional Formatting in Styles group.

ShowKeep Only Duplicate Values 2

Step 3: In Conditional Formatting dropdown list, select Highlight Cells Rules->Duplicate Values.

ShowKeep Only Duplicate Values 3

Step 4: In Duplicate Values dialog, select Duplicate in dropdown list. Keep default value in values with dropdown list. Then click OK.

 

ShowKeep Only Duplicate Values 4

Step 5: Verify that all duplicate values are marked with dark red properly.

ShowKeep Only Duplicate Values 5

Step 6: Select A1, click Data in ribbon, then click Filter in Sort & Filter group.

ShowKeep Only Duplicate Values 6

Step 7: Click on filter arrow on A1 to load filter settings. Click Filter by Color, under Filter by Cell Color select cell with color.

ShowKeep Only Duplicate Values 7

Verify that all duplicate values are filtered.

ShowKeep Only Duplicate Values 8

Step 8: Now we just need to copy these values to new column. Select these cells, press F5, click Special on Go To dialog.

ShowKeep Only Duplicate Values 9

Check on Visible cells only, then click OK.

ShowKeep Only Duplicate Values 10

Verify that duplicate values are auto activated after above step.

ShowKeep Only Duplicate Values 11

Copy and paste them in column B. Clear filter to expand the list. Delete column A. Then only duplicate values are kept.

ShowKeep Only Duplicate Values 12

Method 2: Extract Duplicate Values by Formulas


Step 1: In B2 enter the formula =COUNTIFS($A$2:$A$14,$A2)>1. We get TRUE.

ShowKeep Only Duplicate Values 13

Step 2: Drag the fill handle down. Verify that B2:B14 are filled with TRUE or FALSE.

ShowKeep Only Duplicate Values 14

Step 3: In B1, click Data tab in ribbon, and click Filter to create a filter. In filter, only check on TRUE, then click OK.

ShowKeep Only Duplicate Values 15

Step 4: Verify that only duplicate values are shown.

ShowKeep Only Duplicate Values 16

Step 5: Repeat step#8 in method 1. Then only duplicate values are kept.

 

 

 

 

 

 

Related Posts

Filter Data by Column and Sort by Row
filter by column sort by row1

This post will guide you how to use the FILTER function to filter a value by column and then sort data by row in Microsoft Excel. You can use the following formula based on the SORT function in combination with ...

Filter And Transpose Data From Horizontal To Vertical
filter and transpose horizontal to vertical1

This post will show you how to use Filter function and in combination with Transpose function to filter data from horizontal and transpose data as vertical in Microsoft Excel. You can refer to the below general formula based on TRANSPOSE ...

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

Sidebar