excel functions

MS Excel: EXACT Function (WS)

This Excel tutorial explains how to use the Excel EXACT function with syntax and examples.


The Microsoft Excel EXACT function compares two strings and returns TRUE if both values are the same. Otherwise, it will return FALSE.


The syntax for the EXACT function in Microsoft Excel is:

EXACT( text1, text2 )

Parameters or Arguments

text1 and text2
The two string values to compare.

Note: The EXACT function is case-sensitive when it compares the two strings.

Applies To

The EXACT function can be used in the following versions of Microsoft Excel:

  • Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The EXACT function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel EXACT function examples and explore how to use the EXACT function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the Excel spreadsheet above, the following EXACT examples would return:

=EXACT(A1, A2)
Result: FALSE

=EXACT(A3, A5)
Result: TRUE

=EXACT(A3, A4)
Result: FALSE

=EXACT(A4, "Alphabet")
Result: TRUE