Skip to main content

EXACT function

Description

The EXACT Function Compares two text strings and returns TRUE if they are exactly the same, FALSE otherwise. EXACT is case-sensitive but ignores formatting differences. Use EXACT to test text being entered into a document.

Syntax

EXACT(text1, text2)

Parameters

Text1 Required. The first text string.
Text2 Required. The second text string.

Examples

The example may be easier to understand if you copy the example data (include header) in the following table, and paste it in cell A1 of a new Excel worksheet. If you need to, you can adjust the column widths to see all the data.

Formula Result Description
=EXACT("Excel","Excel") TRUE Checks whether the strings match.
=EXACT("Excel","excel") FALSE Checks whether the strings match.
=EXACT("E xcel","Excel") FALSE Checks whether the strings match.
=EXACT("excel","excel") TRUE Checks whether the strings match.

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>