

IF(AND(A2=B2, A2=C2), “Fully matched”, “”) returns “Fully matched” if AND(A2=B2, A2=C2) returns TRUE.If both or at least one of the conditions becomes false then the formula returns FALSE. AND(A2=B2, A2=C2) returns TRUE if both conditions are true.❷ Now write the following formula containing the IF function and the AND function in its first cell ( D2): =IF(AND(A2=B2, A2=C2), "Fully matched", "") I’ve created a column in column D and gave it a header called Fully Matched/unmatched. ❶ Create a new column adjacent to the existing columns. You can compare multiple cells within the same row for matches using a formula combining the IF and AND functions in Excel. 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.
