How to Count Number by Range with COUNTIFS Function in Excel

This post will guide you how to Count Number by Range with COUNTIFS function in Excel 2013/2016 or Excel office 365. How do I count the number of values that fall with in a specified range by using the COUNTIFS function in Excel. And you should know that the COUNTIFS function can be used to count the number of cells that meet one or multiple criteria in a given range in Excel. And the post will show you a simple example to count numbers by range with COUNTIFS function.

The Syntax of COUNTIFS function is as below:



Range1 is the data range that will be counted using the criteria1

Criteria1: the condition that determines which cells should be counted


For Example, you have a data of list in both A2:A6 and B2:B6 and you wish to count the number of sales between the range of 10 to 20, and you can do the following steps:

#1 select Cell D1

#2 enter the following formula based on the COUNTIFS function:


Then you need to press Enter key to apply this formula. And it will count the cells in range B2:B6 with values between 10 and 20. And the operator “>=” means that “greater than or equal to” and “<=” means that “less than or equal to”.

The formula returns the value 3 in Cell D1. And it means that there are three values between 10 and 20 in your given range B2:B6.

count range by countifs1

If you want to count the number of value between the range of 20 to 30, and you can use the following formula based on the COUNTIFS function:


This formula is the same as in the previous example. And you just only need to change the lowest value is 20, and the highest value is 30. Then this formula will count the cells in range B2:B6 with values between 20 and 30.

count range by countifs2

Related Functions

  • Excel COUNTIFS function
    The Excel COUNTIFS function returns the count of cells in a range that meet one or more criteria. The syntax of the COUNTIFS function is as below:= COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)…


Related Posts

Break ties with helper COUNTIF and column

Suppose you got a task to adjust the values that contain the ties; what would be your first attempt to break the ties of the given value? If you are wondering about doing this task manually, let me add that ...

Calculate Total Cost with Excel VLOOKUP Function

In today's article we will show you how to calculate the total cost for a given weight using the Excel VLOOKUP function. This function will help us to find the appropriate unit price for that weight and then we can ...

Excel Formulas To Calculate The Bond Valuation

Assume that you've been assigned a task of calculating bond valuation; so if you are new to Ms Excel or do not have much experience with it, then I am pretty sure about it that doing this task manually might ...

Calculate Cumulative Totals with Excel SUM Function

Today, through a simple example, we will show you how to use one of the most common-used Mathematical functions in excel, the SUM function, to add up the sum. In our daily life, we keep an account of what we ...

BMI Calculation Formula In Ms Excel

You might have come across a task in which you were assigned to make BMI calculations of the supplied numbers, and you may be looking for an efficient approach to accomplish this process rather than doing BMI calculations manually, by ...