
Example: Compare Cells in the Same Rowīelow is a data set where I need to check whether the name in column A is the same in column B or not. In this case, you need to do a row by row comparison and identify which rows have the same data and which ones does not. This one is the simplest form of comparison. If you think there is something that can be added to this tutorial, let me know in the comments section Compare Two Columns For Exact Row Match However, the basic principles would remain the same. Note that the techniques to compare columns shown in this tutorial are not the only ones.īased on your dataset, you may need to change or adjust the method. Example: Pull the Matching Data (Partial).Example: Pull the Matching Data (Exact).Compare Two Columns and Pull the Matching Data.Compare Two Columns and Find Missing Data Points.Example: Compare Two Columns and Highlight Mismatched Data.Example: Compare Two Columns and Highlight Matching Data.Compare Two Columns and Highlight Matches.Example: Highlight Rows with Matching Data.Example: Compare Cells in the Same Row (using IF formula).Compare Two Columns For Exact Row Match.Highlighting the cells based solely on the name would result in a false highlight in this case. Two of them are duplicates (rows 7 and 27), but there is another entry (row 12) that is unique. In the case of "Michelle Collins" the file contains 3 entries. In column B the highlighting is made using the SUMPRODUCT formula, while cells from column E are highlighted using the built-in Excel conditional formatting. They will have different IDs but the same name. This can be the case when two people with the same name register on a website or if two employees have the same name. In this example, I mentioned that there are some entries that have the same name, but the ID is different. When you apply the new rule, it will highlight all the cells that match the result of our formula. The result of our two Conditional Formatting rules Note: Keep in mind that all the arrays in the SUMPRODUCT formula must be the same size. Otherwise, SUMPRODUCT will generate a #VALUE! error.

#Excel find duplicates case sensitive full#
If the value is greater than 1, this means that the combination of ID + Full name is not unique in our table.

ĭ) The formula will check if the result returned by SUMPRODUCT is greater than 1 (remember our ">1" condition). The conditional formatting formula will then move to the next set of cells, B4 and E4, and perform the same checks, then continue all the way down to row 202.Ī simple way of looking at this formula would be:Ī) SUMPRODUCT will check if ID from cell B3 is found in the array $B$3:$B$202 and generates an array with only 1s and 0s. Part three checks if the sum resulted from SUMPRODUCT is greater than 1. If they are both true, then it will return a value of 1. Part one and two checks to see if cells from arrays ($B$3:$B$202) and ($E$3:$E$202) match the values from cells B3 and E3 respectively.
#Excel find duplicates case sensitive how to#
The easiest way to understand how to find duplicates in Excel with this conditional formatting formula is to split it into three parts. Understanding the Conditional Formatting formula Using "*" sign in the formula makes the two conditions cumulative. Then, it sums all the values and returns the total. SUMPRODUCT assigns a value of 1 when the criteria are met, or a value of 0 when the criteria are not met.
