EXACT
Compares two text values for exact equality.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=EXACT(text1, text2)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
text1 | any | Required | — |
text2 | any | Required | — |
Return type
Can return a logical value (TRUE or FALSE).
Remarks
- Comparison is case-sensitive.
- No wildcard semantics are applied.
- Non-text values are converted to text before comparison.
- Errors in either argument are propagated.
Examples
Compare two identical text values.
Formula =EXACT("Team","Team")
Expected result TRUE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Change letter case while leaving the characters otherwise equal.
Formula =EXACT("Team","team")
Expected result FALSE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Two zero-length strings compare equal.
Formula =EXACT("","")
Expected result TRUE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
An error in a comparison input propagates.
Formula =EXACT("Team",1/0)
Expected result #DIV/0!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Exact same text
Formula =EXACT("Form", "Form")
Expected result TRUE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Case difference is not equal
Formula =EXACT("Form", "form")
Expected result FALSE
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
Does EXACT perform case-sensitive comparison?
Yes. EXACT compares the resulting text values with exact case and character equality.