
π This article includes 1 downloadable practice file β
In this article
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.
EXACT in practice
Where you will use it
- Case-sensitive password or code checks
- Find PAN/GSTIN entered in wrong case
- Compare two lists exactly
Worked example
| A | B | Formula | Result |
|---|---|---|---|
| ABCDE1234F | abcde1234f | =EXACT(A2,B2) | FALSE |
| Pune | Pune | =EXACT(A3,B3) | TRUE |
| Pune | Pune | =EXACT(A4,B4) | FALSE |
Results calculated in Excel.
Mistakes people make
| Mistake | What to do instead |
|---|---|
| Using = for case checks | =A2=B2 ignores case; EXACT doesn't |
| Trailing spaces | EXACT sees them; TRIM first |
Related functions
π Part of the free Excel course: Beginner β Expert Β· Try it in the Formula Lab or ask the AI Helper.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
π Practice files for this article
- πPractice workbook: Text & cleaning24 tasks on realistic sales data β type your formula, the Check column turns green when it is right. Answers sheet included.β¬ XLSX Β· 35 KB
Free to use for learning. Files with macros (.bas) are plain text β import them with Alt+F11 β File β Import File, and always test on a copy.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βBuild this skill next
This page is a quick function reference. Use it for syntax, then practise the function in a broader workflow.
Stuck on a step? Ask a question and the AI answers using this article.