20.9 C
London
Tuesday, July 22, 2025
HomeExcelDescriptive Statistics in ExcelExcel: COUNTIF Greater Than But Less Than Some Number

Excel: COUNTIF Greater Than But Less Than Some Number

Related stories

Learn About Opening an Automobile Repair Shop in India

Starting a car repair shop is quite a good...

Unlocking the Power: Embracing the Benefits of Tax-Free Investing

  Unlocking the Power: Embracing the Benefits of Tax-Free Investing For...

Income Splitting in Canada for 2023

  Income Splitting in Canada for 2023 The federal government’s expanded...

Can I Deduct Home Office Expenses on my Tax Return 2023?

Can I Deduct Home Office Expenses on my Tax...

Canadian Tax – Personal Tax Deadline 2022

  Canadian Tax – Personal Tax Deadline 2022 Resources and Tools...

You can use the following formula to count the number of cells in Excel that are greater than but less than some number:

=COUNTIFS(B:B,">15",B:B,"

This particular formula counts the number of cells in column B where the value is greater than 15 but less than 25.

The following example shows how to use this formula in practice.

Example: COUNTIF Greater Than But Less Than

Suppose we have the following dataset in Excel that shows the number of points scored by basketball players on various teams:

We can use the following formula to count the number of cells in the column that have a value greater than 15 but less than 25:

=COUNTIFS(B2:B11,">15",B2:B11,"

The following screenshot shows how to use this formula in practice:

We can see that a total of 3 cells in the Points column have a value greater than 15 but less than 25.

We can verify this is correct by manually identifying each of these cells in the data:

Note: You can find the complete documentation for the COUNTIFS function in Excel here.

Additional Resources

The following tutorials explain how to perform other common tasks in Excel:

COUNTIF vs. COUNTIFS in Excel: What’s the Difference?
How to Use COUNTIF with OR in Excel
How to Use COUNTIF From Another Sheet in Excel

Subscribe

- Never miss a story with notifications

- Gain full access to our premium content

- Browse free from up to 5 devices at once

Latest stories