Features of !SEMTools
↑ Navigate Excel tasks and !SEMTools add-in features ↑

EXACT

EXACT function examples
EXACT function - examples
Function categoryText
VolatilityNon-volatile

What does the EXACT function do?

This function compares two text items and determines if they are exactly the same.

Character case is considered - only words written identically and having upper and lower case characters in the same positions will be considered equal.

EXACT function syntax

=EXACT(text1, text2)
EXACT vs the = operator
C3=EXACT(A3,B3)
ABCD
1Text 1Text 2EXACT= operator
2AppleAppleTRUE=EXACT(A2,B2)TRUE=A2=B2
3AppleappleFALSE=EXACT(A3,B3)TRUE=A3=B3
4AppleApple·FALSE=EXACT(A4,B4)FALSE=A4=B4
52200%TRUE=EXACT(A5,B5)TRUE=A5=B5

The = operator ignores case, EXACT doesn’t. A trailing space (·) breaks both. 200% is the number 2, so it equals 2 for both checks.

Only two arguments can be compared.

EXACT: result and input format

Like all text functions, the function converts numeric format to natural numbers before comparison. Therefore, the function considers 200% and 2 (initially in numeric format) as matching text values.

This applies to formatting as date, date-time, time, percentage, and financial format.

EXACT function usage examples

The function can be convenient when you need to find letters in a specific case in a cell - for example, uppercase or lowercase.

Find any uppercase letters

To search for uppercase letters, we'll use logic and the LOWER function.

The logic is as follows:

  1. convert the cell value to lowercase
  2. compare the result with the original cell value
  3. if FALSE is returned - there was at least one uppercase letter
  4. Voila!

Here's the formula:

=NOT(EXACT(LOWER(A1), A1))

Find any lowercase letters

Here's a similar formula, but with the UPPER function:

=NOT(EXACT(UPPER(A1), A1))

Find if there are letters in a cell

If you check whether the cell values in uppercase and lowercase match, you can identify if there are letters in it. If a letter was in lowercase, it will become uppercase, and if in uppercase - lowercase, and only if there are no letters in the cell, it will remain the same as it was. Hieroglyphs don't count.

Makes sense, right? :)

The corresponding formula:

=NOT(EXACT(UPPER(A1), LOWER(A1)))
Uppercase, lowercase, any letters
B3=NOT(EXACT(LOWER(A3),A3))
ABCD
1TextHas uppercaseHas lowercaseHas letters
2reportFALSE=NOT(EXACT(LOWER(A2),A2))TRUE=NOT(EXACT(UPPER(A2),A2))TRUE=NOT(EXACT(UPPER(A2),LOWER(A2)))
3ReportTRUE=NOT(EXACT(LOWER(A3),A3))TRUE=NOT(EXACT(UPPER(A3),A3))TRUE=NOT(EXACT(UPPER(A3),LOWER(A3)))
4REPORTTRUE=NOT(EXACT(LOWER(A4),A4))FALSE=NOT(EXACT(UPPER(A4),A4))TRUE=NOT(EXACT(UPPER(A4),LOWER(A4)))
52025-10FALSE=NOT(EXACT(LOWER(A5),A5))FALSE=NOT(EXACT(UPPER(A5),A5))FALSE=NOT(EXACT(UPPER(A5),LOWER(A5)))
6№ 5FALSE=NOT(EXACT(LOWER(A6),A6))FALSE=NOT(EXACT(UPPER(A6),A6))FALSE=NOT(EXACT(UPPER(A6),LOWER(A6)))

Each check compares the text with a case-converted copy. Text without letters (“2025-10”, “№ 5”) looks the same in UPPER and LOWER, so the last column is FALSE.

See also:

Like the article? Help its author! Buy !SEMTools, it has lots of useful instruments to process text data.