# How to Count Cells Between Two Values in Google Sheets

To count cells between two values in Google Sheets, you can use the COUNTIFS function. The COUNTIFS function allows you to count the number of cells that meet multiple criteria.

Here's how to use the COUNTIFS function:

- Open your Google Sheet.
- Click on a cell where you want the result to be displayed.
- Type the following formula:

`=COUNTIFS(range,">=min_value",range,"<=max_value")`

Replace "range" with the cell range where the data is located, "min_value" with the minimum value, and "max_value" with the maximum value.

For example, if you want to count the number of cells with values between 5 and 10 in the range A1:A10, you would use the following formula:

`=COUNTIFS(A1:A10,">=5",A1:A10,"<=10")`

## Example

Let's say you have the following data in cells A1:A10:

```
10
15
20
25
30
35
40
45
50
55
```

To count the number of cells with values between 20 and 40, follow these steps:

- Click on an empty cell, for example, B1.
- Type the following formula:

`=COUNTIFS(A1:A10,">=20",A1:A10,"<=40")`

- Press Enter.

The result in cell B1 will be 3, which indicates that there are three cells in the range A1:A10 with values between 20 and 40.