EXACT
The EXACT
function in Google Sheets is a useful tool to test whether two strings are identical. It can be used to compare text values for exact matches. Learn more about its syntax and usage in our comprehensive guide.
Function Syntax and Parameters
Syntax: EXACT(string1, string2)
Parameters:
string1
: The first string to compare.string2
: The second string to compare.
Step-by-Step Tutorial
-
Comparing two strings:
- Example:
=EXACT("apple", "apple")
- Result:
TRUE
- Example:
-
Comparing case-sensitive strings:
- Example:
=EXACT("apple", "Apple")
- Result:
FALSE
- Example:
-
Comparing the contents of cells:
- Example: If cell
A1
contains the value "apple" and cellB1
contains the value "apple", then=EXACT(A1, B1)
will returnTRUE
.
- Example: If cell
Use Cases and Scenarios
- Data Validation: Check if two input strings match.
- Text Comparison: Determine if two strings have the same content.
- Formula Verification: Compare the output of two formulas for accuracy.
Related Functions
LEN
: Get the length of a string.LOWER
: Convert a string to lowercase.UPPER
: Convert a string to uppercase.SUBSTITUTE
: Replace text within a string.