Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Example of COUNTIFS with variable table column in Excel
  • Excel Pie Chart
  • Number and Text Filters Examples in Excel
  • Chart Axes in Excel
  • How to Use Solver Tool in Excel

References

  • How to use Excel INDIRECT Function
  • How to use Excel ROW Function
  • How to create dynamic named range with OFFSET in Excel
  • Find closest match in Excel
  • Complete List of Excel Lookup and Reference Functions, References and Examples

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation date in next 30 days
  • Excel Data validation only dates between
  • Excel Data validation must contain specific text
  • Excel Data validation no punctuation

Count cells between dates in Excel

by

This tutorial shows how to Count cells between dates in Excel using the example below;

Formula

=COUNTIFS(range,">="&date1,range,"<="&date2)

Explanation

To count the number of cells that contain dates between two dates, you can use the COUNTIFS function.  In the example shown, F5 contains this formula:

=COUNTIFS(dates,">="&DATE(E5,1,1),dates,"<="&DATE(E5,12,31))

This formula counts birthdays in the year 2000, that appear in the range C5:C11.

Note: this formula uses the named range “dates”, C5:C11.

How this formula works

The COUNTIFS function is built to count cells that meet multiple criteria. In this case, we need to provide two criteria: one criteria for the earlier date and one for the later date. We supply the named range dates (C5:C11) for both criteria.

To construct each date, we use the DATE function:

DATE(E5,1,1) // build first day of year
DATE(E5,12,31) // build last day of year

The DATE function makes it easy to build dates based on year, month, and day arguments that are either hard-coded or supplied as cell references. In the example,  month and day are hard-coded, and we get year from column E.

Note: the operators “>=” and “<=” must be entered as text and surrounded by double quotes. This means we must use concatenation (&) to join each operator to each date.

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Nested IF function example in Excel
  • How to use Excel NOT Function
  • Excel If, Nested If, And/Or Criteria Examples
  • SWITCH function example in Excel
  • OR function Examples in Excel

Date Time

  • How to determine year is a leap year in Excel
  • DATE function: Description, Usage, Syntax, Examples and Explanation
  • Dynamic date list in Excel
  • Convert Excel time to decimal seconds
  • Display Days in month in Excel

Grouping

  • Group numbers at uneven intervals in Excel
  • How to randomly assign data to groups in Excel
  • Map inputs to arbitrary values in Excel
  • Group arbitrary text values in Excel
  • Map text to numbers in Excel

General

  • Print Excel Sheet In Landscape Or Portrait
  • Sum by group in Excel
  • How to Delete Cells, Row and Rows in Excel
  • Zoom Worksheet in Excel
  • Excel Operators
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning