ExcelFlux

EXACT function

Check — to see if two text values are identical.

Text

Where can you use it?

Data preparation and reporting teams. Use this group to clean, split or reformat IDs, names and descriptions before using them in reports.

Scenario in the workbook

Compare IDs character by character. Case and trailing spaces affect the match.

A worked example from the workbook

RowA
6Invoice code
7INV-042
8inv-125
9AB-0007
Trial 1
=EXACT(A7,"INV-042")

Expected resultTRUE

See the inputs and instructions for all 3 examples

Syntax

EXACT(text1, text2)

Copyable formulas

English Excel · en-US
=EXACT("sku","SKU")
Turkish Excel · tr-TR
=ÖZDEŞ("sku";"SKU")

Expected result

FALSE

Worked examples

Compare IDs character by character. Case and trailing spaces affect the match.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A
6 Invoice code
7 INV-042
8 inv-125
9 AB-0007
Case Formula Expected result
Trial 1 =EXACT(A7,"INV-042") TRUE
Trial 2 =EXACT(A8,"INV-125") FALSE
Trial 3 =EXACT(A7,A7&" ") FALSE
Microsoft Excel reference