Excel EXACT Function
EXACT compares two text values and returns TRUE only when they match exactly.
Use it to catch capitalization differences, extra spaces, or small text mismatches that a normal equals comparison may not make obvious.
EXACT syntax & arguments
Syntax
=EXACT(text1, text2)
-
1
text1
RequiredThe first text value, cell reference, or formula result to compare.
-
2
text2
RequiredThe second text value, cell reference, or formula result to compare against
text1.
Example
=EXACT(A2, B2)
Return TRUE only when A2 and B2 contain the same text with the same capitalization.
EXACT caveats
-
Capitalization matters
"SKU-01"and"sku-01"return FALSE because EXACT is case-sensitive. -
Spaces count as characters
Leading, trailing, or repeated spaces can make values fail the comparison. Use TRIM first when spacing should be normalized.
-
Formatting is ignored
Bold text, fill color, and number formats are not part of the compared text value.
Need case-insensitive cleanup? Normalize both sides with UPPER or LOWER before comparing.
Intro EXACT practice problem
Solve the intro problem directly here, or open it on its own page.
Advanced EXACT practice problems
Use EXACT alongside other Excel functions in realistic, less-prescriptive challenges.