Excel's logical operators are used in formulas to perform comparisons, and to build formula criteria. Logical operators can be used in formulas on their own, or combined with each other and/or other functions. The table below lists the logical operators available in Excel:

Operator Meaning Example
=Equal to=A1=10
<>Not equal to=A1<>10
>Greater than=A1>100
<Less than=A1<100
>=Greater than or equal to=A1>=75
<=Less than or equal to=A1<0

Note: all Excel formulas must begin with an equal sign (=). This is a syntax requirement, not a logical comparison.

Math operators are listed here. See this list of formulas for many examples of logical operators in formulas. Note that a text value is greater than any number in Excel.

Support Exceljet

Many websites (including Exceljet) have lost over half their traffic in the past year because of the crushing impact of AI on web searches. Exceljet is still at it, publishing free content each week. If you find Exceljet helpful, you can support the site and go ad-free with the Exceljet Lifetime Pass. One payment, no subscription, and ads are gone forever. Plus, you get our Excel Shortcuts video course as a thank you.

Get the Lifetime Pass