You are viewing a read-only archive of the Blogs.Harvard network. Learn more.

~ Archive for Excel tips ~

Compare columns in Excel

ø

When you have partially identical content in two columns in an Excel spreadsheet, you can find the differences with the following formula:

=IF(A3=C3,”same”,”different”)

where you would be comparing columns A and C.  Paste the formula into all cells in a new column.  Each cell in the new column will contain either the word “same” or the word “different” depending on whether the content in columns A and C on that row is the same or different.

To find where the content differs, you can sort the spreadsheet by this new comparison column, or you can apply conditional formatting to that column – for example, to highlight all cells with the word “different” in red.

Log in