EXACT Function in Excel: Case-Sensitive Comparison

⏱ 1 min readUpdated 28 September 2026

TextLevel: IntermediateAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Related functions

EXACT compares two texts including upper/lower case. A normal =A2=B2 ignores case.

Syntax

=EXACT(text1, text2)
Argument What it means
text1, text2 Texts to compare.

Examples

Example 1

=EXACT(A2, B2)

TRUE only if “ABC123” matches “ABC123”, not “abc123”.

Example 2

=SUMPRODUCT(--EXACT(A2:A100, "SKU-a"))

Case-sensitive count.

UPPER · FIND · COUNTIF

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong