EXACT Function in ONLYOFFICE Spreadsheet Editor: Syntax and Examples
Compare two text strings with case sensitivity, useful for auditing identifiers and capitalization.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
=EXACT("SKU-104","sku-104") returns the expected logical value FALSE because capitalization differs. EXACT compares two complete text strings; it does not search for a substring or repair the input.
Availability and version history
- Introduced: The original introduction version and date are not established by the checked references.
- Availability: Documented in current ONLYOFFICE Spreadsheet Editor help; no final supported-version endpoint is established.
- Scope: Desktop and Docs release separately. Older builds, mobile clients, localized parsing and imported-workbook parity remain separately unverified.
- Checked: October 14, 2026, against the official EXACT reference, vendor illustrations and pinned calculation source. The explicit text examples were independently calculated; these formulas were not executed in a native application.
Syntax and case sensitivity
EXACT(text1, text2)
Both text arguments are required. The official reference states that the comparison is case-sensitive and returns TRUE or FALSE. The pinned calculation source compares the converted strings directly; these examples stay with explicit ASCII text rather than relying on undocumented numeric/date conversions.
On VendorExact, enter the illustrative text MyPassword in A1 and mypassword in A2, then put =EXACT(A1,A2) in C1. The first official illustration shows FALSE. Copy this sheet as VendorSameCase, change only A1 to mypassword, and C1 becomes TRUE, as in the second illustration. These are fictional demonstration labels, not credentials to reuse or store in a workbook.
Preserve the original five comparison pairs
Create IdentifierPairs, reserving A1:H10. Enter Submitted and Reference in A1:B1. Enter these literal text values in A2:B6. B4 has exactly one trailing ordinary space; the ␠ symbol below makes it visible but must not be typed.
| Row | A: Submitted | B: Reference |
|---|---|---|
| 2 | SKU-104 | SKU-104 |
| 3 | SKU-104 | sku-104 |
| 4 | SKU-104 | SKU-104␠ |
| 5 | aBc | aBc |
| 6 | North | NORTH |
Put Exact match in C1, Submitted length in D1, Reference length in E1 and Outcome in F1. Enter C2 =EXACT(A2,B2), D2 =LEN(A2), E2 =LEN(B2) and F2 =IF(C2,"MATCH","REVIEW"). Fill C2:F2 through row 6.
| Row | Expected C | D | E | F |
|---|---|---|---|---|
| 2 | TRUE | 7 | 7 | MATCH |
| 3 | FALSE | 7 | 7 | REVIEW |
| 4 | FALSE | 7 | 8 | REVIEW |
| 5 | TRUE | 3 | 3 | MATCH |
| 6 | FALSE | 5 | 5 | REVIEW |
Rows 3 and 6 have equal lengths but different case. Row 4 has different lengths because of the extra space. LEN helps explain a mismatch; matching lengths alone cannot establish equality.
Keep the original literal comparison in C7: =EXACT("MyPassword","mypassword") gives FALSE. In H3, =IF(EXACT(A3,B3),"MATCH","REVIEW") independently reproduces REVIEW using IF.
Compare raw and deliberately normalized text
In H4 put =EXACT(TRIM(A4),TRIM(B4)) for expected TRUE, compared with raw C4=FALSE. The TRIM reference describes leading/trailing-space removal; this example uses only one ordinary trailing space.
The two answers describe different questions: whether the original strings match, and whether their trimmed forms match. Keep both rather than replacing the raw evidence. If spaces are meaningful in the identifier system, normalization may be the wrong policy.
Copy IdentifierPairs as ChangedReference and change B2 to SKU-105. C2 becomes FALSE, D2/E2 remain 7 and F2 becomes REVIEW. The same length and capitalization do not compensate for a changed digit.
Advanced: equal text does not prove a required field is present
On IdentifierPairs, H2 =IF(AND(LEN(A2)>0,EXACT(A2,B2)),"PASS","CHECK") gives PASS. The length condition adds a policy that EXACT alone does not express.
Create PresencePolicy, reserving A1:G8. Put Submitted, Reference, Exact, Positive length, Pass and Trimmed pass in A1:F1. Enter the following formulas in A2:B5 so every empty or space input is explicit:
| Row | A formula | B formula |
|---|---|---|
| 2 | ="" |
="" |
| 3 | =" " |
=" " |
| 4 | ="AB" |
="AB" |
| 5 | ="AB" |
="ab" |
A3/B3 contain three ordinary spaces. Enter these result formulas in row 2 and fill C2:F2 through row 5:
C2: =EXACT(A2,B2)
D2: =LEN(A2)>0
E2: =AND(D2,C2)
F2: =AND(LEN(TRIM(A2))>0,EXACT(TRIM(A2),TRIM(B2)))
| Row | Expected C | D | E | F |
|---|---|---|---|---|
| 2 | TRUE | FALSE | FALSE | FALSE |
| 3 | TRUE | TRUE | TRUE | FALSE |
| 4 | TRUE | TRUE | TRUE | TRUE |
| 5 | FALSE | TRUE | FALSE | FALSE |
Two explicit empty strings match, yet fail the required-length rule. Three spaces satisfy positive length but fail the trimmed rule. This illustrates a deliberate ASCII input policy; it does not classify every blank cell, Unicode whitespace character or imported value.
Limits and practical checks
EXACT does not establish uniqueness, membership in an approved register or identity of the person supplying a code. Duplicate rows can all match a reference. It is also not a fuzzy-match or case-insensitive comparison.
The short help does not fully define formatting, coercion, arrays or Unicode normalization. Visually similar strings may contain different characters, and identical display formatting is not evidence of identical stored text. Keep the raw values and isolate a discrepancy before applying a cleanup rule.
Use SEARCH for a case-insensitive substring position and CLEAN when known nonprinting characters need a separate transformation. Neither should be silently inserted into an exact-match policy.