Check whether two cells are identical, including letter case.
Copy this formula
=EXACT(A2, B2)EXACT returns TRUE only when the two values match exactly, case included. A plain =A2=B2 also compares but ignores case. Wrap in IF to return a friendly label.
=IF(EXACT(A2, B2), "Match", "Differ")→Differ"ABC" and "abc" are treated as different.
=EXACT("Excel", "excel")→FALSEThe capital E makes the two texts different.
=TRIM(A2)=TRIM(B2)→TRUEIgnores extra spaces that would otherwise make two cells look different.
Case-insensitive
=IF(A2=B2, "Match", "Differ")Plain comparison ignores case.
Standard comparison is case-insensitive. Use EXACT for a case-sensitive check.
One usually has a trailing space, or a number stored as text. Compare =LEN(A2) and =LEN(B2) to find the difference.
Use =AND(A2:D2=F2:I2) in Excel 365. It returns TRUE only when every pair of cells matches.
Select the second column and add a conditional formatting rule with the formula =A2<>B2.
Need a formula for your own data?
Describe what you want in plain language and let ExcelGPT write, explain, and verify the formula — free to start, no plugin.