Home

How to Build Excel Comparison Expressions

|
Updated:  
2018-09-18 18:23:09
|
Excel Sales Forecasting For Dummies
Explore Book
Buy On Amazon
A comparison expression — also known as a logical expression or a Boolean expression — is an expression in which you compare the items in a range or table column with a value you specify. In Excel, you use comparison expressions to create advanced filters for a table, as well as in functions that require criteria, such as COUNTIF, SUMIF, and AVERAGEIF.

To construct a comparison expression, you enter a comparison operator from the following table and then a value used in the comparison.

Operator Name Example What It Matches
= Equals = 100 Cells that contain the value 100
<> Not equal to <> 0 Cells that contain a value other than 0
> Greater than > 1000 Cells that contain a value greater than 1,000
>= Greater than or equal to >= 25 Cells that contain a value that’s equal to or greater than 25
< Less than < 0 Cells that contain a negative value
<= Less than or equal to <= 927 Cells that contain a value that’s equal to or less than 927

About This Article

This article is from the book: 

About the book author:

Paul McFedries is a Google® Workspace administrator, a thankless job if ever there was one. Paul is also a full-time technical writer who has somehow found the time to write more than 100 books that have sold more than four million copies worldwide.