How do I use Google Sheets to count the number of cells that are greater than a certain number but less than another number?

Google Sheets is a spreadsheet program that allows users to organize and analyze data. One useful feature of Google Sheets is the ability to count the number of cells that meet certain criteria. This can be particularly helpful when working with large sets of data. To count the number of cells that are greater than a certain number but less than another number, users can utilize the COUNTIF function. This function allows users to specify a range of cells and a criteria, such as being greater than a certain number and less than another number, and will return the number of cells that meet that criteria. By using this function, users can easily and accurately determine the number of cells that fall within a specific range of values in their data set. This feature can save time and effort when working with large amounts of data in Google Sheets.

Google Sheets: COUNTIF Greater Than But Less Than Some Number


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

=COUNTIFS(B2:B11,">15",B2:B11,"<25")

This particular formula counts the number of cells in the range B2:B11 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 Google Sheets 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 Points column that have a value greater than 15 but less than 25:

=COUNTIFS(B2:B11,">15",B2:B11,"<25")

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 Google Sheets .

Additional Resources

x