If you want to **remove duplicate data from a list** you can use Remove Duplicates function in excel directly, then the unique data will be saved in the list, the duplicate one will be removed. But if you want to remove both duplicates from your list, this function cannot help you. In this article, I will introduce you a simple way to solve this problem.

See the example below. A name list with some duplicate names.

Original List: Updated List after Remove Duplicates:

If you want to remove both duplicate values like ‘Amy’ ‘Cathy’, you can follow below steps.

**Remove Both Duplicate Rows by Formula**

**Step 1:** In cell B2 enter the formula **=IF(COUNTIF($A$2:$A$9,A2)=1,0,1)**. In this formula we use **IF** and **COUNTIF** functions together. **COUNTIF** function is used for counting the number of A2 from range **$A$2:$A$9**, and IF function is used for returning True of False value. For example, A2 value Ada only appears once in the list, so **COUNTIF($A$2:$A$9,A2)** will return 1 (so **COUNTIF($A$2:$A$9,A2)=1** is true), so IF function will return 0 in B2.

**Step 2:** Drag the **fill handle** down to fill the other cells. So B2 to B9 will be filled by this formula. Due to some values are duplicate in the list, you can see for some values IF function returns 0, and for the others returns 1.

**Step 3:** We can see that for the duplicate values, they are marked with 1 in B column. So we can use filter function in B column to filter them out. Select on B1, click **Data->Filter**.

**Step 4:** Click **dropdown list arrow** button, only check on value 1 in the list. Then click **OK** button.

**Step 5:** Verify that all duplicate values are listed.

**Step 6:** Then you can remove row 3,4,5,8 now. **Press Ctrl** and select on row 3,4,5,8.

**Step 7:** **Right click** and select ‘**Delete Row**’. Verify that these duplicate rows are removed.

**Step 8:** Remove filter, delete value in column B. Then we get the updated list without duplicate values.

Related Posts

Calculate Years Between Dates In Ms Excel
If you are an avid Ms Excel user, then you might have come across a task in which you needed to calculate the years between the dates; you might take it easy and do this task manually, which is also ...

Calculate Number of Hours between Two Times
Calculating the difference between two times might be a valuable statistic for subsequent computations or averages, whether you're producing a time sheet for staff or recording personal exercises. While Excel has a plethora of complex functions, including date and time ...

Calculate Loan Interest in Given Year
When you borrow money, you are supposed to repay it gradually. Lenders, on the other hand, want to be compensated for their services and the risk they incur by lending you money. That is, you will not just repay the ...

Calculate Interest Rate for Loan
The interest rate is the fee charged by a lender to a borrower and is expressed as a percentage of the principal—the lent amount. The interest rate on a loan is often expressed as an annual percentage rate, abbreviated as ...

Calculate Interest for Given Period
Using the IPMT function in Excel, we can compute the interest payment on any loan. This step-by-step tutorial will guide Excel users of all skill levels through the process to calculate interest for given period. Finally, the formula: =IPMT(B3/12,1,B5,-B2) The ...

How To Use Excel GCD Function
This post will guide you how to use Excel GCD function with syntax and examples in Microsoft excel. Description The Excel GCD function Returns the greatest common divisor of two or more integers. So you can use the GCD function ...

Calculate A Ratio From Two Numbers In Excel
In elementary mathematics, a ratio is a connection or comparison between two or more integers. For example, ratios are often expressed as ":" to demonstrate the relationship between two numbers. You would think that manually calculating a ratio from two ...

How To Use Excel RRI Function
This post will guide you how to use Excel RRI function with syntax and examples in Microsoft excel. Description The Excel RRI function Returns an equivalent interest rate for the growth of an investment. So you can use the RRI ...

CAGR Formula Examples in Excel
CAGR in Excel is a formula that calculates the compound annual growth rate for any invested amount over the specified years or timeframe. Although there is no direct function in Excel that can help us identify the CAGR value, there ...

Build Hyperlink With VLOOKUP in Excel
You might have come across a task in which you were assigned to build hyperlinks, which seems very easy, and if you are new to excel or don't have enough experience with it, then you might wonder about doing this ...