Contact

EXACT Function (OpenOffice Calc)

Text Intermediate OpenOffice Calc

Learn the EXACT function in Apache OpenOffice Calc: Specifies whether two texts are identical.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Availability and version history

  • Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
  • Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
  • Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
  • Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.

EXACT compares two text strings and returns TRUE only when their characters match, including letter case and spaces. It is useful for auditing identifiers or checking whether a text transformation changed a value. It compares text content, not cell formatting, provenance or file identity.

Syntax and arguments

=EXACT(text1; text2)

Both text arguments are required. Supply literal strings in quotes or references to text cells. The 4.1.16 interpreter obtains a string for each argument, compares the strings directly and returns a logical result. There is no optional case-insensitive mode, tolerance or whitespace-cleaning switch. English function names and semicolon argument separators are used here.

Reproducible examples

Formula Expected result
=EXACT("Calc";"calc") FALSE
=EXACT("Calc";"Calc") TRUE
=EXACT("AB-01";"AB-01 ") FALSE
=EXACT("001";"1") FALSE
=EXACT("";"") TRUE
=EXACT("A B";"A B") FALSE

The first formula preserves the original guide’s worked example. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New results are independently checked reference expectations; no fresh native or GUI test is claimed. Here "" denotes zero-length text.

Practical worksheet: compare two imports of case-sensitive identifiers

Enter AB-01, Ab-02 and AB-03 in A2:A4. Enter AB-01, AB-02 and AB-03 in B2:B4, keeping the final ordinary space in B4. In C2 enter =EXACT(A2;B2) and fill down. Expected results are TRUE, FALSE and FALSE. The last two mismatches arise from case and spacing respectively.

In D2 enter =IF(C2;"Same text";"Review") and fill down. This adds a readable label without changing either import. A FALSE result tells you there is a difference; it does not say which version is authoritative or whether the change was intended.

Advanced applications

Audit a cleaning operation. For A2 containing North , =EXACT(A2;TRIM(A2)) is FALSE. For A2 containing North it is TRUE. This identifies rows changed by that particular transformation; it is not a test for every possible invisible character.

Choose normalization explicitly. =EXACT(LOWER(A2);LOWER(B2)) treats ordinary ASCII case differences as equivalent while still noticing spaces. Adding TRIM changes the rule again. Use such preprocessing only when the identifier specification permits it, and retain the originals for review.

Separate equality from type validation. EXACT compares strings obtained by the interpreter. It is not a strict test that two cells have the same stored type or number format. For a text-only identifier workflow, validate ISTEXT input type separately rather than assuming that a TRUE result proves both original cells were text.

Errors, edge cases and troubleshooting

Case and every stored space matter in the selected examples. Visually similar text can differ because of punctuation, nonbreaking spaces or distinct Unicode representations. The inspected direct-string comparison does not establish normalization equivalence; do not assume that visually identical composed and decomposed characters compare TRUE.

Cell formatting such as font, color, borders or numeric display style is outside this textual comparison. It is also not a numerical approximate-equality test: values that should be compared within a measurement tolerance need a separate numeric rule.

Empty text equals empty text here, but a formula returning empty text is not a genuinely blank cell. An error in an input expression is not simply a mismatching string; diagnose the source calculation. Use one helper formula per row and fill down rather than assuming an automatic spilling comparison over a whole range. The examples use explicit text inputs, so native coercion of every number, date, blank or logical type remains unverified.

Documentation and verification

See the Apache OpenOffice EXACT reference, 4.1.16 text-function help, and versioned interpreter. The official source snapshots were retrieved on October 13, 2026 and re-read for this guide; no new retrieval date is implied. Source inspection and reference calculations do not certify native encoding, locale or extreme-input behavior. First introduction and final functioning version remain unestablished; the lifecycle section identifies documented support.