The EXACT function in Excel is a powerful tool designed to compare two text strings for exact matches. This function is case-sensitive, meaning it treats uppercase and lowercase letters as different characters. It is particularly useful for validating data entries or ensuring consistency in text comparisons, making it an essential addition to any data analysis toolkit.
Syntax
EXACT(text1, text2)
- text1: The first text string to compare.
- text2: The second text string to compare against the first.
Example #1
EXACT("Apple", "apple")
This function compares the two text strings “Apple” and “apple”. Since the letters differ in case, the result will be FALSE.
Example #2
EXACT("Orange", "Orange")
This function checks if both strings are identical. As they match exactly, the result will be TRUE.
Example #3
EXACT("Banana", "Banana ")
Here, the function compares “Banana” with “Banana “. The trailing space in the second string causes the result to be FALSE since they are not exactly identical.
Error handling
- VALUE!: This error occurs if either of the text strings is not recognized as text. Ensure both inputs are valid strings.
- NAME?: This error indicates that Excel cannot recognize the function name. Check for spelling errors in the function name.