
#Compare two columns in excel and return differences how to
How to Make a Conditional Comparison across Two Columns

Adding context to your comparisons makes your Google Sheet easier for other people to understand. The “Compare” column now states if the values for columns “A” and “B” are the same or different. Drag the square in the bottom right corner of the comparison cell down to the last row you want to compare (black arrow).We’re using =IF(A2=B2,”Same”,”Different”) in this example. Enter the =IF(Cell1=Cell1,”True Replacement Text”,”False Replacement Text”) as the cell formula (blue arrow).Select the top cell in the comparison column (yellow arrow).The formula with the chosen values “Same” for “TRUE” and “Different” for “FALSE” will look like:īelow are the steps to compare cells for a match across rows with redefined “TRUE” and “FALSE” values: =IF(Cell1=Cell2,”True Replacement Text”,”False Replacement Text”) Instead of returning “TRUE” or “FALSE”, you can modify the formula to return different text. However, it doesn’t provide context to someone looking at the spreadsheet without knowledge of the formula. Using “TRUE” and “FALSE” for matches makes sense to the person who set up the formula. How to Return a Pre-defined Value for Matches and Differences This will apply the formula to compare the cell in the first column with the second column in each row.


In this case, we are comparing cell A2 with cell B2 so our formula is “=A2=B2”. Select the cell you want the results to appear in (yellow arrow).This formula will return “TRUE” if the cells have the same data and “FALSE” if they do not.īelow are the steps to compare two cells for a match:

The formula for this comparison is: “=cell1=cell2” One of the simplest comparisons you can do in Google Sheets is to check if two cells have the same value. How to Compare Two Cells for Matching Data Compare two columns to find the highest and lowest values.How to build a list of duplicates between two columns.How to Compare Each Row in One Column for a Match in Another Column.How to Compare Columns to Search for Missing Data.How to Make a Conditional Comparison across Two Columns.How to Return a Pre-defined Value for Matches and Differences.How to Compare Two Columns for Row Matches.How to Compare Two Cells for Matching Data.
