EQ
The EQ
function in Google Sheets returns TRUE
if two specified values are equal and FALSE
otherwise. It is equivalent to the =
operator. Use this function to compare values and perform conditional operations.
Function Syntax and Parameters
Syntax: EQ(value1, value2)
Parameters:
value1
: The first value to compare.value2
: The second value to compare.
Step-by-Step Tutorial
-
Using
EQ
to compare numbers:- Example:
=EQ(5, 5)
- Result:
TRUE
- Example:
-
Using
EQ
to compare strings:- Example:
=EQ("apple", "banana")
- Result:
FALSE
- Example:
Use Cases and Scenarios
- Data Validation: Check if two input values match.
- Conditional Formatting: Highlight cells that have the same value.
- Filtering Data: Filter rows based on equality conditions.
Related Functions
NE
: ReturnsTRUE
if two specified values are not equal.IF
: Perform conditional operations based on a given condition.