Remove Duplicates in Excel: How To Keep Only Unique Values
Removing unique values in Excel can be a crucial step in data cleaning and organization. There might be times when you have a list of values that you want to keep, but not the duplicates. This article will guide you through the process of eliminating unique values using Excel's built-in functions and tools.
Before we delve into the methods, let's ensure you understand what we mean by 'unique values'. These are the individual data points that appear only once in your dataset. Removing them essentially leaves you with the duplicate values, which can be useful for various purposes, such as identifying frequently occurring data or preparing data for statistical analysis.
Using Remove Duplicates Tool
The Remove Duplicates tool in Excel is a straightforward way to delete unique values, but it's important to note that it works in reverse - it removes duplicates, not unique values. To use it for our purpose, we'll first identify the unique values using conditional formatting, and then use Remove Duplicates to eliminate them.
The process involves several steps. First, you'll apply conditional formatting to highlight the unique values. Then, you'll use the Remove Duplicates tool to eliminate these highlighted cells. Here's a detailed guide on how to do this:
Step 1: Identify Unique Values using Conditional Formatting
1. Select the range of cells containing the data.
2. Click on 'Home' in the ribbon, then 'Conditional Formatting', and choose 'New Rule'.
Step 2: Apply Remove Duplicates Tool
1. After identifying the unique values, go to the 'Data' tab.
2. Click on 'Remove Duplicates'. A dialog box will open, listing all the columns in your selected range.
3. Uncheck the columns you don’t want to consider for duplication. The unique values in the other columns will be deleted.
Using FILTER Function in Excel 365
If you're using Excel 365, there's a more direct method using the FILTER function. This function returns a new array with a subset of values from the source range. In this case, we'll use it to return only the duplicate values, thereby removing the unique ones.
Here's how to use it:
Step 1: Prepare Your Data
1. Suppose your data is in column A. In column B, use the COUNTIF function to count the frequency of each value in column A. The formula is: =COUNTIF($A$1:$A$100, A1) (assuming your data ranges from A1 to A100).
Step 2: Use FILTER Function
1. In a new column, use the following formula: =FILTER(B:B, B:B>1)
2. This formula checks each value in column B (the frequency count) and filters out only those that are greater than 1, i.e., duplicates.