10 Operators in Functions

We will be using operators frequently and it is really important to know how to use the ones listed in the table below. Often you will read a statement and have to convert it to Excel language. For example, when you read “or fewer” this means to use the “less than” symbol. Another example is if you read “at least” you will use “Greater than or equal to”. Please note the text examples in the table below are not exhaustive!

Comparison operators

Comparison operator Meaning Example Text to look for
= (equal sign) Equal to =A1=B1 “is equal to” or “equals”
> (greater than sign) Greater than =A1>B1 “more than”
< (less than sign) Less than =A1<B1 “fewer than
>= (greater than or equal to sign) Greater than or equal to =A1>=B1 “more than or equal to”
<= (less than or equal to sign) Less than or equal to =A1<=B1 “Fewer than or equal to”
<> (not equal to sign) Not equal to =A1<>B1 “all except”

Comparison operators Excel results

This table breaks down what each operator does in a different explanation. You use the comparison operators to compare values and return a result in Excel that is True, False, or Null.

Operator Purpose Example
< Returns True if the first value is less than the second value. Value1 < Value2
<= Returns True if the first value is less than or equal to the second value. Value1 <= Value2
> Returns True if the first value is greater than the second value. Value1 > Value2
>= Returns True if the first value is greater than or equal to the second value. Value1 >= Value2
= Returns True if the first value is equal to the second value. Value1 = Value2
<> Returns True if the first value is not equal to the second value. Value1 <> Value2

Note: In all cases, if either the first value or the second value is null, the result is also null. Because null represents an unknown value, the result of any comparison with a null value is also unknown.


AI use statement:

AI Copilot was used to create this content, it was then edited and adjusted for accuracy and flow.