Excel - Using Logical Operators

Using Logical Operators

Logical operators are comparison operators that are used to compare two or more values, returning an output of either TRUE or FALSE. Below are the commonly used logical operators in excel and their usage.

OPERATOR USAGE
Equals to

=

For checking if two data are the same. For example, =(A1=B2) will return TRUE if A1 and B2 are the same, else FALSE if they are not the same.

Not Equals to

<>

For checking if two data are the not same. For example, =(A1<>B2) will return FALSE if A1 and B2 are the same, else TRUE if they are not the same.

Greater Than

>

For comparing if one data is greater than the other. For example, =(A1>B2) will return TRUE if A1 is greater than B2, else FALSE B2 is greater than A1.

Less Than

<

For comparing if one data is less than the other. For example, =(A1< B2) will return TRUE if A1 is less than B2, else FALSE B2 is less than A1.

Greater Than or Equals to

>=

For comparing if one data is greater than or equals to the other. For example, =(A1>=B2) will return TRUE if A1 is greater than or equals to B2, else FALSE B2 is greater than to A1.

Less Than

<=

For comparing if one data is less thana or equals to the other. For example, =(A1<=B2) will return TRUE if A1 is less than or equals B2, else FALSE B2 is less than A1.

ADVERTISEMENTS

LEARNING IS A CONTINOUS PROCESS - PRACTICE MAKES PERFECT