Compare Two Columns and Find Differences
You have two columns of data — say, an old email list and a new one — and you need to know which rows match and which don't, without eyeballing hundreds of rows.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
The formula checks whether the value in A2 equals the value in B2. If they're identical, it returns Match; otherwise it returns Mismatch. Copy it down the column and every row gets checked automatically. The comparison is not case-sensitive — "ana@co.com" and "ANA@co.com" count as a match. If you need to find values from column A that appear anywhere in column B (not just the same row), use =IF(COUNTIF(B:B,A2)>0,"In list","Missing") instead.
When to use it
Use this when reconciling two versions of the same list: exported data vs. a master file, last month's roster vs. this month's, or system A vs. system B.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08