SheetsLessons
Text function

EXACT function in Google Sheets

EXACT checks whether two text values are identical, including upper and lower case. A plain = comparison ignores case, so EXACT is what you need for passwords, codes and case-sensitive IDs.

Syntax

=EXACT(string1, string2)
string1
The first text.
string2
The second text.

Practice EXACT

Task 1 of 1

Codes are case-sensitive. Return TRUE in C2 only if the retyped code in B2 matches A2 exactly, including capitalization.

C2
fx

Tip: while typing a formula, click a cell or drag across cells to insert references. Press Enter to check, and Tab to accept a function suggestion.

EXACT examples

Each example below runs against this sample sheet. The results are calculated by the same engine as the practice grid.

ABC
1Raw nameSKUNote
2  maya   PATEL ELC-0427-NYRefund requested
3leo rossiFUR-1180-TXShipped
4AVA KIMOFC-0093-CARefund issued
Messy imported data
FormulaResultWhat it shows
=EXACT(A3, "leo rossi")TRUEIdentical, including case.
=EXACT(A4, "Ava Kim")FALSESame letters, different case.
=A4 = "Ava Kim"TRUEA normal comparison ignores case.

Tips and common mistakes

  • EXACT also notices extra spaces. TRIM both sides first if spaces shouldn't matter.

Related functions