Skip to main content
 

How to count number of cells between two values or dates in Excel?

Author: Siluvia Last Modified: 2024-08-22

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.

a screenshot of the original data

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.

"a x and < y"/>

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.

"a= x and <= y" " />

Easily count number of cells between two values or dates in Excel:

Click Kutools > Select > Select Specific Cells. The Kutools for Excel's Select Specific Cells utility helps you easily count and select cells between two values or dates in Excel.
Download the full feature 30-day free trail of Kutools for Excel now!

a screenshot showing how to use Kutools for Excel to easily count the number of cells between two values or dates


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.

a screenshot of using COUNTIF to count number of cells between two dates

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.

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.

a screenshot of setting conditions in the Select Specific Cells dialog box

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.

a screenshot showing how many cells are eligible and selected

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:

a screenshot of configuring date conditions in the dialog box

  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:


Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


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!