Excel Data Analysis For Dummies
Book image
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 technical writer who has been authoring computer books since 1991 and has over 100 books to his credit. These books include Alexa For Dummies, Amazon Fire TV For Dummies, and Cord Cutting For Dummies. You can visit Paul on the web at www.mcfedries.com.

This article can be found in the category: