
Method 7: Use the IF and SUM Function to Compare Rows in Excel for Finding Duplicates ❼ Go to the Fill tab and pick a Background Color as per your choice. ❺ Now write the following formula in the Format Values Where This Formula Is True bar: =AND($A2=$B2,$A2=$C2,$A2=$D2) ❹ Select Use a Formula to Determine which Cells to Format. ❷ Click on the Conditional Formatting drop-down. To find the matches in a row that have the same values in all its cells, take the following steps: Method 6: Use the Conditional Formatting Rules Manager to Find the Matches in All Cells of a Row Add more commands in the formula this way: =IF(AND(A2=B2, A2=C2,A2=D2),"Fully matched","") 💡 Important: If you have a larger datasheet than the one I have shown you (a list of three columns), don’t worry. ❹ Now put the mouse cursor on the Fill Handle icon and drag over the range of cells D2:D15.

Method 5: Use the IF Formula to Compare All the Cells of a Row ❸ Now put the mouse cursor on the Fill Handle icon and drag over the range of cells C2:C15. ❶ Write the following formula in the C2 cell: =IF(A2B2,"Unique","")

In the same way, you can screen out the unmatched rows. Method 4: Find the Different Rows in Two Columns in Excel Row-by-Row Now drag down the Fill Handle icon over the range of cells C2:C15. ❹ After that place your mouse cursor at the right-bottom corner of cell C2. ❷ Insert the following formula of IF function in the first cell of that column ( C2): =IF(A2=B2,"Same","") ❶ At first, create a new column beside the other columns. This task gets easy when you know to use the IF function for comparing two columns row-by-row. One common task while working with a spreadsheet is to compare all the rows from a long list. Method 3: Compare Two Columns in Excel Row-by-Row Here is the final result in the image below. ❿ Again press OK in the New Formatting Rule dialog box to save all the changes. ❽ Go to the Fill tab and choose a Background Color as per your preference. This will take you to the Format Cells dialog box. ❼ Below there click on the Format button. ❻ Then type the following formula inside the Format Values Where This Formula Is True bar: =$D2=$E2 ❺ From the dialog box, choose to Use a Formula to Determine Which Cells to Format. ❹ Now select ‘New Rules’ from the Conditional Formatting drop-down list.Ī dialog box named New Formatting Rule will appear.

❸ From the Styles group, click on the Conditional Formatting drop-down. ❷ Then go to the Home tab from the main ribbon. To highlight the duplicate cells in the same row, follow these steps: You can also save a lot of time if your worksheet is very long. Because it makes the results very easy to find. Method 2: Use New Rule Dialog Box to Compare Rows in Excel for DuplicatesĪmong all other techniques, highlighting the rows is my personal favorite technique for finding duplicates.

For example ‘ Match and Mismatch’, ’ Duplicate and Different’, ‘ Positive and Negative’ etc. ❹ Now put your mouse cursor on the Fill Handle icon and drag it to the end of the column ( C2-C15).Īs a substitute for the words ‘Same’ and ‘Unique’, you can use other words also.
