We want to compare both columns for an exact match. If you want to compare two columns row by row in insensitive characters or get more descriptions such as match or mismatch, you can use the IF function alongside the EXACT Function to get the same values. This method seeks out the same values and is case-insensitive.Ĭompare Two Cells in the Same Row for Exact Matches or Case Insensitive (Using the IF formula with EXACT Function) If the formula returns TRUE, the two-column values are the same if it returns FALSE, they are different. Press the Enter key and drag the fill handle down to cell D8. Usually, if you want to compare two cells belonging to a single row by row to look for matching values or get the same values, you can use the following formula: =B2=C2 Compare Two Columns, Row by Row.īelow is a dataset where I need to check in the same row whether or not the names in column A match those in column B.Ĭomparing Columns by Row Position to Get an Exact Match Make sure not to drag down the formula until the last row because it will return a 0 value for the last one since Cell B15 is an empty string. Now all the unique names in both columns are listed. Select cell E2, and drag the fill handle to the cells that you want to contain this formula, after which all the names in column B have been extracted only as follows: Keep entering this formula: = IF ((ISERROR(MATCH(B2,$A$2:$15,0))),B2,"") into cell E2, and press Enter key:Ĥ. Drag the fill handle down to the cells that you want to apply this formula, and all the unique values in column A are only inserted once:ģ.
0 Comments
Leave a Reply. |