How do I count cells in a specific range?

If you need to count cell numbers that contain specific values between two numbers or dates, the formula of the CountIf function can quickly help you. In this tutorial, we will show you details of counting number of cells that between two values or dates in Excel.

Count cell numbers between two numbers with CountIf function
Count cell numbers between two dates with CountIf function
Count cell numbers between two values or dates with Kutools for Excel (without formula)


Count cell numbers between two numbers with CountIf function

For example, you have a worksheet with the below numbers in the cell B2:B8, and you want to count the cell numbers that between number 75 and 90, please do as follows.

How do I count cells in a specific range?

Counting cell numbers > X and < Y

If you want to count cell numbers between 75 and 90 but not including 75 and 90, you need to:

1. Select a blank cell which you want to put the counting result. Copy and paste the formula =COUNTIFS(B2:B8,">75", B2:B8,"<90") into the Formula Bar, and then press the Enter key.

How do I count cells in a specific range?

Then you can see the result of cell numbers displaying in the selected cell immediately.

Counting cell numbers >= X and <= Y

For counting cell numbers >=75 and <= 90, please use this formula =COUNTIFS(B2:B8,">=75", B2:B8,"<=90").

1. Select a blank cell for putting the counting result, copy and paste the above formula into the Formula Bar. Then press the Enter key. You will see the counting result showing in the selected cell.

How do I count cells in a specific range?


Count cell numbers between two dates with CountIf function

In this section, we are showing you how to count cell numbers between two dates based on cell reference.

For example the date range existing in cell A14:A20 in your worksheet, and you want to count the cell numbers based on cell B21 and B22, please do as follows.

1. Select a blank cell, copy and paste the formula =COUNTIFS(A14:A20,">="&B21,A14:A20,"<="&B22) into the Formula Bar, then press the Enter key. See screenshot below.

How do I count cells in a specific range?

Note: After copying and pasting the formula above, you need to change the cell range and the values manually for your own needs.


Count cell numbers between two values or dates with Kutools for Excel (without formula)

If you are a formula newbie and cannot handle formula easily, we recommend you a handy add-in to easily count cell numbers between two values or dates in Excel.

Before applying Kutools for Excel, please download and install it firstly.

Step 1. Click Kutools > Select > Select Specific Cells.

How do I count cells in a specific range?

Step 2. In the Select Specific Cells dialog box, select cell range in the Select cells in this range section, select Cell option in the Selection type section, specify your conditions such as Greater than 75 and Less than 90 in the Specific type section, and finally click the Ok button.

How do I count cells in a specific range?

Step 3. Then a Select Specific Cells dialog box will pop up to show you the total number of cells which meet the conditions you specified above, click the OK button and the cells are selected immediately.

How do I count cells in a specific range?

Note: With this feature, you can also count and select the dates between two dates, you just need to type the two dates into the Select Specific Cells dialog box as following shown:

How do I count cells in a specific range?

  If you want to have a free trial ( 30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


Demo: Count cell numbers between two values or dates with Kutools for Excel


Related articles:

  • How to count number of cells with text or number in Excel?
  • How to count cells with specific text in Excel?
  • How to count number or “Yes” or “No” answer in Excel?

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.

How do I count cells in a specific range?


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!

How do I count cells in a specific range?

How do I count the number of cells with a certain value range in Excel?

Use the COUNT function to get the number of entries in a number field that is in a range or array of numbers. For example, you can enter the following formula to count the numbers in the range A1:A20: =COUNT(A1:A20). In this example, if five of the cells in the range contain numbers, the result is 5.

How do you do a Countif with a range?

=COUNTIF(Range, criteria) The COUNTIF function uses the following arguments: Range (required argument) – This defines one or several cells that we wish to count. The range of cells are those cells that will be tested against the given criteria and counted if the criteria are satisfied.

How do I use Countif for specific cells?

COUNTIF Function.
Select a cell..
Type =COUNTIF..
Double click the COUNTIF command..
Select a range..
Type ,.
Select a cell (the criteria, the value that you want to count).
Hit enter..

How do I count occurrences within a range in Excel?

Count how often a single value occurs by using the COUNTIF function. Use the COUNTIF function to count how many times a particular value appears in a range of cells.