Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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

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)


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 60-day free trail of Kutools for Excel now!

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download the free trial Now!

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

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.

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.

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.


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.

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 think that the formula method is not easy to use. Now we provide you a handy add-in for easily counting cell numbers between two values or dates in Excel.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days. 

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

doc count cell numbers between two values 9

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.

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.

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:


Office Tab - Tabbed Browsing, Editing, and Managing of Workbooks in Excel:

Office Tab brings the tabbed interface as seen in web browsers such as Google Chrome, Internet Explorer new versions and Firefox to Microsoft Excel. It will be a time-saving tool and irreplaceble in your work. See below demo:

Click for free trial of Office Tab!

Office Tab for Excel

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

Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 60 days. Download the free trial now!


Related articles:


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.
kte tab 201905

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!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    rodrigo choque · 2 months ago
    alguien me puede ayudar con esta formula =SUMAPRODUCTO(--(BD!AY9:AY32>=SNIS!AI6); --(BD!AY9:AY32<=SNIS!AL6);
    --(CONTAR.SI.CONJUNTO(BD!C9:C32;">=0,6";BD!C9:C32;"<=1"))) donde esta el error
  • To post as a guest, your comment is unpublished.
    suganya · 4 years ago
    Sl.No. School Student Gender Date of
    name NAME joining

    1 ABC ananthi f 01-05-2015
    2 DEF arjun m 21-05-2015
    3 ABC reshma f 22-06-2015
    4 DEF rani f 07-07-2015
    5 CAD gopika f 08-07-2015
    6 CAD banu f 25-07-2015
    7 ABC vijay m 22-08-2015
    8 ABC ARUN M 05-08-2015
    I want count the school name ABC and how many male or female from date 01-06-2015 to 31-08-2015


    help me to count the text within the particular dated between the dates

    [b]This type of is the output I need
    from 01-06-2015 to 31-08-2015

    School name Male Female
    ABC 2 1
    • To post as a guest, your comment is unpublished.
      Asif K · 6 months ago
      Hi

      There are many ways you can do this, but in case if you have a data such like mentioned above then its very easy.

      All you have to do is
      1. Select the Column
      2. Go to "Text to Columns" from your Data option in ribbon
      3. Separate your data by Space
      4. Manipulate accordingly.