
If you want to find case-sensitive matches between 2 columns in each row, then use the EXACT function: Compare two lists for case-sensitive matches in the same rowĪs you have probably noticed, the formulas from the previous example ignore case when comparing text values, as in row 10 in the screenshot above.
#IRIP NAME AND SERIAL CODE WINDOWS HOW TO#
Here is an example showing how to filter matches and differences between 2 columns. You can also compare two columns row-by-row using Excel Advanced Filter. To find cells in the same row with different values, simply replace the equals sign with the non-equality sign ():Īnd of course, nothing prevents you from finding both matches and differences with a single formula:Īs you see, the formula handles numbers, dates, times and text strings equally well.

To find cells within the same row having the same content, A2 and B2 in this example, the formula is as follows: As you do this, the cursor changes to the plus sign: Enter the formula in some other column in the same row, and then copy it down to other cells by dragging the fill handle (a small square in the bottom-right corner of the selected cell). To compare two columns in Excel row-by-row, write a usual IF formula that compares the first two cells.

Compare two columns for matches or differences in the same row

This task can be done by using the IF function, as demonstrated in the following examples. When you do data analysis in Excel, one of the most frequent tasks is comparing data in each individual row. How to compare 2 columns in Excel row-by-row
