Step by step
- Two cells: =A2=B2, or =EXACT(A2,B2) for case.
- Missing values: =ISNUMBER(MATCH(A2,B:B,0)).
- To see what changed inside long text, paste it here.
At a glance
| Goal | Formula | Note |
|---|---|---|
| Same value, any case | =A2=B2 | TRUE or FALSE |
| Exact match including case | =EXACT(A2,B2) | Case sensitive |
| Is A2 anywhere in column B? | =ISNUMBER(MATCH(A2,B:B,0)) | FALSE means missing |
Related questions
Why do two equal-looking cells not match?
Hidden spaces; wrap them in TRIM: =TRIM(A2)=TRIM(B2).
Can I compare two whole columns line by line?
Copy each column into a box here; each cell becomes a line.
Does it work in Google Sheets?
Yes, the same formulas work.
More questions: text compare
- How to compare two texts or documents in Word
- How to compare text in two PDFs
- How to compare two files in Notepad++
- How to compare two files or texts in VS Code
- How to compare text while ignoring spaces and case
- How to compare two text files on Windows 11
- How to compare two text files on a Mac
- Text compare for large files and long documents
- How to compare two texts for similarity or copying
- How to compare code, SQL or CSV online safely
Updated November 14, 2026.