NE
The NE
function in Google Sheets is used to check if two specified values are not equal. It returns TRUE
if the values are not equal and FALSE
otherwise. This function is equivalent to using the <>
operator.
Function Syntax and Parameters
Syntax: NE(value1, value2)
Parameters:
value1
: The first value to compare.value2
: The second value to compare.
Step-by-Step Tutorial
-
Using
NE
to compare numbers:- Example:
=NE(5, 10)
- Result:
TRUE
- Example:
-
Using
NE
to compare text values:- Example:
=NE("apple", "orange")
- Result:
TRUE
- Example:
-
Using
NE
to compare cell references:- Example: If
A1
contains the value7
andB1
contains the value7
, then=NE(A1, B1)
will returnFALSE
.
- Example: If
Use Cases and Scenarios
- Data Validation: Check if two input values are not equal.
- Conditional Formatting: Apply formatting based on whether two cells are not equal.
- Error Checking: Identify discrepancies between two sets of data.