What is the EXACT function?
=EXACT(text1, text2)EXACT compares two texts and returns TRUE if they are exactly the same, FALSE otherwise. Any difference in case or spaces makes it FALSE.
Comparing with = says "Excel" and "excel" are equal, but EXACT says they differ. Play the steps to see the two texts lined up character by character, stopping at the first difference.
Arguments
- text1
- The first text or cell to compare.
- text2
- The second text or cell to compare.
EXACT examples
Example 1. Case-sensitive
=EXACT("Excel", "excel")FALSE. ="Excel"="excel" is TRUE.
Example 2. The same text
=EXACT("word", "word")TRUE.
Example 3. A space difference
=EXACT("word", "word ")One trailing space makes it FALSE.
Common mistakes
Thinking it is the same as =
= does not distinguish case. Use EXACT when case matters, such as passwords or codes.
Invisible spaces
A trailing space in a cell often causes FALSE. Clean it up with TRIM first.
FAQ
- Can it compare numbers?
- Yes. Numbers are compared as text, so EXACT(123, "123") is TRUE.
- Ignoring case?
- Use =A1=B1.