How to Create Inequalities in Microsoft Excel

What You Need to Know About Inequalities in Excel

Inequalities in Excel are comparisons. You compare one value against another and get a TRUE or FALSE result. That's it. No magic, no complexity. Just logic.

Most people use inequalities without realizing itβ€”when you filter data above a certain value, when you create conditional rules, when you build any kind of decision-making formula. Here's how to actually use them.

The Six Inequality Operators

Excel has six comparison operators. Learn these first, because everything else depends on them.

These work in formulas, filters, and conditional formatting. They always return TRUE or FALSE.

Basic Inequality Formulas

Type a formula that compares two values. Start with =, then use the operator.

Example: =A1>100

This checks if the value in cell A1 is greater than 100. If it is, you get TRUE. If not, you get FALSE.

You can compare:

Using Inequalities with IF Statements

Inequalities become useful when combined with IF. The syntax is:

=IF(logical_test, value_if_true, value_if_false)

Example: =IF(A1>=1000, "High", "Low")

This checks if A1 is 1000 or more. If yes, it returns "High". If no, it returns "Low".

You can nest multiple conditions:

=IF(A1>=1000, "High", IF(A1>=500, "Medium", "Low"))

Three tiers. Clean. No need to overcomplicate it.

Counting and Summing with Inequalities

COUNTIF and SUMIF let you count or total cells based on conditions.

COUNTIF Examples

SUMIF Examples

COUNTIFS and SUMIFS for Multiple Conditions

Add more criteria with COUNTIFS or SUMIFS:

=COUNTIFS(A:A, ">100", A:A, "<500")

Counts cells between 100 and 500.

Conditional Formatting with Inequalities

Highlight cells based on their values. This is where inequalities save you time.

  1. Select your range of cells
  2. Go to Home β†’ Conditional Formatting β†’ New Rule
  3. Choose Format cells that contain
  4. Set your condition (e.g., "Cell Value > 100")
  5. Pick your formatting
  6. Click OK

You can also use formulas in conditional formatting for more control:

=$A1>100

This applies the format to any row where column A exceeds 100.

Filtering Data with Inequalities

Excel's filter function uses inequalities behind the scenes, but you can set custom criteria:

  1. Select your data range
  2. Go to Data β†’ Advanced (not just Filter)
  3. Use criteria range with your inequality conditions

This is useful for extracting records that meet specific thresholds.

Quick Reference Table

Operator Formula Example Returns TRUE when
> =A1>100 A1 is greater than 100
< =A1<50 A1 is less than 50
>= =A1>=100 A1 is 100 or more
<= =A1<=50 A1 is 50 or less
= =A1=100 A1 equals exactly 100
<> =A1<>100 A1 is not 100

Common Mistakes to Avoid

Getting Started

Try this exercise:

  1. Open a blank spreadsheet
  2. Put numbers in cells A1 through A10
  3. In cell B1, type: =IF(A1>50, "High", "Low")
  4. Copy B1 down to B10

You now have a simple classifier. Change the numbers in column A and column B updates automatically.

That's the foundation. From here, you can build COUNTIF formulas, conditional formatting rules, or complex nested IF statements. The operators don't changeβ€”only how you combine them.