

In case, you want an Excel formula to find duplicates only, replace "Unique" with an empty string ("") like this: For example, to search for duplicates in cells A2:A8, use this formula:įor a duplicate formula to return something more meaningful than the Boolean values of TRUE and FALSE, enclose it in the IF function and type any labels you want for duplicate and unique values: If you need to find duplicates in a range of cells rather than in an entire column, remember to lock that range with the $ sign.

Input the above formula in B2, then select B2 and drag the fill handle to copy the formula down to other cells:Īs you can see in the screenshot above, the formula returns TRUE for duplicate values and FALSE for unique values.

Here's a formula to find duplicates in Excel including first occurrences (where A2 is the topmost cell): These can be invoices, product Id's, names or any other data. Supposing you have a list of items in column A that you want to check for duplicates. How to find duplicate records including 1 st occurrences Depending on whether you want to find duplicate values with or without first occurrences, there's going to be a slight variation in the formula as shown in the following examples. The easiest way to detect duplicates in Excel is using the COUNTIF function.
