Contact

EXACT Function in Apple Numbers: Syntax, Examples and Troubleshooting

Text Beginner Apple Numbers

Check whether text values match exactly, including case and spacing, using an auditable Numbers table.

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

EXACT returns TRUE when two strings agree in case and content. ACME and ACME match; acme and ACME do not. Equal lengths alone cannot detect a case change or a substituted punctuation character.

Availability and version history

  • Introduced: Documented in Apple’s Formulas and Functions Help 15.4; the original introduction release is not established.
  • Availability: Currently documented in Apple’s Formulas and Functions Help 15.4 edition; this is not a Numbers app version or a final supported-version endpoint.
  • Scope: Shared iWork function help. Availability in individual clients and older releases is not established by this check.
  • Checked: October 14, 2026, against the official EXACT reference. Official documentation and independent text checks; no native Numbers execution.

Syntax and the comparison policy

EXACT(string-1, string-2)

Both string arguments are required. Apple’s EXACT reference defines case-and-content identity; there is no optional third argument or case-insensitive mode. Supply text literals or text-valued cells and keep numeric/date conversion questions separate.

On LiteralChecks, a new three-column, five-row table, put =EXACT("Case","case") in A2 for FALSE and =EXACT("Case","Case") in A3 for TRUE, preserving the original literal checks. In B2 put =EXACT("toledo","toledo") for TRUE and in B3 put =EXACT("Toledo","toledo") for FALSE, reproducing Apple’s two examples.

Rebuild the original pairwise worksheet

Create Text Checks, with eight columns A:H and eight rows, one header row. Put Submitted and Reference in A1:B1. Enter these strings in A2:B6 as Text without surrounding quote characters:

Row A — Submitted B — Reference Expected EXACT
2 ACME ACME TRUE
3 acme ACME FALSE
4 North-01 North-01 TRUE
5 North 01 North-01 FALSE
6 red, two leading ordinary spaces red FALSE

Enter =EXACT(A2,B2) in C2 and fill through C6 for TRUE,FALSE,TRUE,FALSE,FALSE. Row 5 has a space in one input and a hyphen in the other; the characters differ even though both strings have eight graphemes.

Distinguish length, spacing and case changes

Use D2 =LEN(A2), E2 =LEN(B2), F2 =D2=E2, G2 =EXACT(TRIM(A2),TRIM(B2)) and H2 =EXACT(UPPER(A2),UPPER(B2)). Fill D2:H2 through row 6.

Row D E Same length F Trimmed comparison G Uppercase comparison H
2 4 4 TRUE TRUE TRUE
3 4 4 TRUE FALSE TRUE
4 8 8 TRUE TRUE TRUE
5 8 8 TRUE FALSE FALSE
6 5 3 FALSE TRUE FALSE

TRIM changes ordinary spacing while preserving case. UPPER changes case while retaining the leading spaces in row 6. These are deliberate alternative comparison policies; they do not mean the original strings were already exact matches.

Both checks still reject the punctuation difference in row 5. A cleanup operation should express an approved data rule, not simply force a desired comparison result.

Advanced: require a nonempty matching identifier

Create IdentifierReview, with six columns and seven rows, one header row. Enter these A:B pairs:

Row A — Submitted B — Reference
2 INV-001 INV-001
3 INV-001 INV-01
4 enter formula ="" enter formula =""
5 enter formula =" " enter formula =" "
6 inv-001 INV-001

Row 4 contains explicit empty strings, and row 5 contains three ordinary spaces in each cell. They are not instructions to leave the cells empty. In C2 put =EXACT(A2,B2) and fill through C6. The string-contract expectations are TRUE,FALSE,TRUE,TRUE,FALSE.

In D2 enter the original readable flag, =IF(EXACT(A2,B2),"Approved","Review"), and fill through D6. It approves rows 2, 4 and 5. The matching empty and space-only pairs show why equality alone is insufficient for a required ID.

In E2 enter the original nonempty guard and fill through E6:

=IF(AND(LEN(A2)>0,EXACT(A2,B2)),"Approved","Review")

Expected E is Approved,Review,Review,Approved,Review. This rejects the empty strings but still accepts the three-space pair because its length is positive.

If ordinary space-only identifiers are also forbidden, put this separate policy in F2 and fill through F6:

=IF(AND(LEN(TRIM(A2))>0,EXACT(A2,B2)),"Approved","Review")

Only row 2 is Approved. EXACT still compares the original strings; TRIM is used only to reject an all-space submitted value. None of these flags checks whether INV-001 is an issued identifier or an authorized record. The short labels describe the stated checks only.

Preserve information before applying a policy

The original INV-001 versus INV-01 comparison remains FALSE. Turning both into numbers, dropping punctuation or discarding zeros would answer a different question. Text identifiers require an explicit representation policy before import.

LEN helps inspect size, IF labels the outcome, and AND requires all supplied conditions. These formulas use operations defined for every stated string; AND is not being used to assume short-circuit protection from an invalid argument.

Empty-string expectations here follow the documented string contracts. Truly empty cells, unusual whitespace, Unicode normalization, mixed numeric/date inputs and native error presentation remain separate untested cases.

Platform and text boundaries

These examples use local references within the named Numbers table. English multi-argument formulas use commas; Apple’s syntax guidance specifies semicolons when the decimal separator is a comma. A one-argument formula such as LEN or TRIM has no argument separator to change.

The help edition does not establish identical Unicode, imported-value, numeric/date conversion or error behavior in every client and historical release. Keep identifiers as text when zeros, spaces or punctuation matter. A matching length or cleaned label is not proof of a valid or unique record.