# Count cells between values

In simple words, count the number of values in a set of data having multiple conditions.

COUNTIFS function in excel returns the cell count having multiple criteria.

=COUNTIFS(range1, criteria1, range2, criteria2,...)

\
Range1 : array on which criteria1 will apply
Criteria1 : condition on array1
Range2 : array on which criteria2 will apply
Criteria2 : condition on array2

Let’s understand this function using it in an example.

Here we have a set of numbers and we need to count the cells which matches conditions.

Use the below function formula

=COUNTIFS(A2:A19,">=" & 40,A2:A19,"<="&100)

A2:A19 : Range1, array on which criteria1 will apply
">=" & 40 : Criteria1 : condition on array1
A2:A19 : Range2 : array on which criteria2 will apply
"<="&100 : condition on array2
As you can see there are 8 cells having values within ranges.

Hope you understood how to get the days between dates in Excel. Explore more articles on Excel Date & TIME functions here. Please feel free to state your query or feedback for the above article.
Top articles:
Related articles:

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.