Excel formula: Count cells greater than or less than

To count the cells greater than or less than a particular number, you can use the COUNTIF function to handle it.

Count cells greater than a particular value

Generic formula:

 COUNTIF(range,criteria)

Example:

Count the number of cells that are greater than 35 from the Number List. Using this formula

 =COUNTIF(B3:B8,E2)

Or

 =COUNTIF(B3:B8,"<35")

In above formula, B3:B8 is the range you will count cells from, E2 and “>35” are the criteria you want to count cells based on.

The press Enter key to get the counted result.

Tip:

If you want to count cells greater than or equal to a particular value, you can use this generic formula:

 COUNTIF(range,”>=number”)

Take example: Count cells that greater than or equal to 32, using the formula:

 =COUNTIF(B12:B17,">=32")

Count cells less than a particular value

Generic formula:

 COUNTIF(range,criteria)

Example

Count the number of cells that are less than 50 from the Number List.

 =COUNTIF(B3:B8,E2)

or

 =COUNTIF(B3:B8,">50")

In above formula, B3:B8 is the range you will count cells from, E2 and “>50” are the criteria you want to count cells based on.

The press Enter key to get the counted result.

Tip:

If you want to count cells less than or equal to a particular value, you can use this generic formula:

 COUNTIF(range,”>=number”)

Take example: Count cells that less than or equal to 59, using the formula

 =COUNTIF(B12:B17,"<=59")

Sample File

Relative Formulas

• Count cells equal to
With the COUNTIF function, you can count cells that equal to or not contain a specified value.
• Count cells that equal to x or y
In some times, you may want to count the number of cells that meet one of two criteria, in this case, you can use the COUNTIF function.
• Count cells equal to x and y
Here this article introduce the formula to count cells that at the meanwhile match two criteria.
• Count cells not equal to
This article talks about how to use the COUNTIF function to count the number of cell that not equal to a specific value

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

 🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions… Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ... Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup... Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List... Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Columns to Select Same & Different Cells ... Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ... Top 15 Toolsets:  12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

• One second to switch between dozens of open documents!
• Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
• Increases your productivity by 50% when viewing and editing multiple documents.
• Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.