IF vs Equal (=) vs EXACT Function in Excel (Khmer)
Learn the difference between Equal (=) operator and EXACT function in Excel for case-sensitive text comparison step by step with Khmer video guide.
Hello everyone! Today I show you difference between IF, Equal operator (=), and EXACT function in Excel step by step with easy examples and video guide in Khmer language.
Many beginners get confused when comparing two text cells in Excel. Do you know that standard = sign ignores capital letters, while EXACT() function checks capital letters strictly? Let's see how they work!
Quick Comparison: = vs EXACT()
| Comparison | Example | Result | Case Sensitive? |
|---|---|---|---|
Equal (=) | ="EXCEL" = "excel" | TRUE | ❌ No (Ignores Case) |
| EXACT() | =EXACT("EXCEL", "excel") | FALSE | ✅ Yes (Strict Case) |
Method 1: Standard Equal Operator (=) - Case Insensitive
When you compare two cells using standard = sign:
=A2 = B2
- If
A2=AppleandB2=apple, Excel returnsTRUE. - Excel treats uppercase (
A-Z) and lowercase (a-z) as exact same thing.
Using inside IF function:
=IF(A2 = B2, "Match", "Not Match")
- Returns
MatchforAppleandapple.
Method 2: EXACT Function - Case Sensitive Comparison
If you need to verify strict case sensitivity (like password, product code, SKU, or serial number):
Use EXACT function:
=EXACT(A2, B2)
- If
A2=AppleandB2=apple, Excel returnsFALSE! - If
A2=AppleandB2=Apple, Excel returnsTRUE.
Using inside IF function:
=IF(EXACT(A2, B2), "Exact Match", "Case Different")
Method 3: Real Example - Validate Product Serial Code
Suppose cell A2 contains master code KH-990A and user type input in B2:
-
Formula 1 (Standard IF):
=IF(A2 = B2, "Pass", "Fail")If user type
kh-990a, result isPass(ignoring lower case). -
Formula 2 (Strict Case IF + EXACT):
=IF(EXACT(A2, B2), "Pass", "Fail")If user type
kh-990a, result isFailbecausekhis lowercase!
📹 Watch Khmer Video Tutorial
Watch video step by step below to see how to use IF, Equal, and EXACT functions in Excel:
💡 Quick Tip:
- Hidden Space Problem: If
EXACT(A2, B2)returnsFALSEeven when text looks 100% same, one cell probably has an invisible extra space at the end! Wrap withTRIM:=EXACT(TRIM(A2), TRIM(B2)).- Case-Sensitive Lookup: Standard
VLOOKUPandXLOOKUPare case-insensitive. If you need case-sensitive lookup, combineXLOOKUPwithEXACT:=XLOOKUP(TRUE, EXACT(A2:A10, "Apple"), B2:B10).
📚 Related Resources
Related Tutorials
Opens in new tab ↗How to Split Phone Number with Formula in Excel (Khmer)
Learn how to split two phone numbers in one cell into two separate columns in Excel step by step using LEFT, MID, FIND, LEN, and IF formulas with Khmer video guide.
How to Calculate Working Hours in Excel (Khmer)
Learn how to calculate total working hours, subtract lunch break, handle night shifts, and calculate total pay in Excel step by step with Khmer video guide.
How to Split Decimal Number into Two Parts in Excel (Khmer)
Learn how to split decimal number into two parts (integer and decimal) in Excel step by step with simple formulas and Khmer video guide.