Quick, clean, and to the point

Excel EXACT Function

Excel EXACT function

The Excel EXACT function compares two text strings, taking into account upper and lower case characters, and returns TRUE if they are the same, and FALSE if not. EXACT is case-sensitive.

Compare two text strings
Return value 
A boolean value (TRUE or FALSE)
=EXACT (text1, text2)
  • text1 - The first text string to compare.
  • text2 - The second text string to compare.
Usage notes 

The EXACT function compares two text strings in a case-sensitive manner. If the two strings are exactly the same, EXACT returns TRUE. If the two strings are not the same (taking into account upper and lower case) EXACT returns FALSE.


Below are two examples of the EXACT function used with hardcoded strings. In the first example, the strings are identical, in the second example, the only difference is the capital "A":

=EXACT("apple","apple") // returns TRUE
=EXACT("Apple","apple") // returns FALSE

In the example shown, the formula in D6, copied down the column, is:


You can also use a normal equals sign (=) in a formula, but the comparison is not case sensitive:

=("Apple"="apple") // returns TRUE

Download 100+ Important Excel Functions

Get over 100 Excel Functions you should know in one handy PDF.