FormulaCraft

How to compare two columns in Excel and Google Sheets

Topic:Duplicates & uniqueness
Excel & Google Sheets
=IF(A2=B2, "Match", "Different")

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1For a row-by-row check, use =IF(A2=B2, "Match", "Different").
  2. 2To find values in A that are missing from B, use =IF(COUNTIF(B:B, A2)=0, "Missing", "").
  3. 3Copy the formula down to flag every row.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

How do I find items in one list that are not in another?

Use =IF(COUNTIF(B:B, A2)=0, "Missing", "") — it flags every value in column A that does not appear in column B.

More on Duplicates & uniqueness

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: