Table of Contents
Counting the number of occurrences of a specific date in an Excel spreadsheet can be achieved by using the COUNTIF function. This function allows you to specify a date and a range of cells to search in, and it will return the number of cells that contain the specified date. This method is useful for keeping track of how many times a certain date appears in a large data set, such as a financial record or a project schedule. Simply input the date and the range of cells into the COUNTIF formula, and the result will accurately reflect the number of occurrences of that date within the specified range. This method ensures a quick and efficient way to track and analyze data based on specific dates in an Excel spreadsheet.
Excel: Count Number of Date Occurrences
You can use the following formula to count the number of date occurrences between a particular date range in Excel:
=SUMPRODUCT((A2:A12>=$E$1)*(A2:A12<=$E$2))
This particular formula counts the number of date occurrences in the range A2:A12 where the date is between the start date in cell E1 and the end date in cell E2.
The following example shows how to use this formula in practice.
Example: Count Number of Date Occurrences in Excel
Suppose we have the following dataset that contains information about the number of sales made on various dates by some retail store:

Suppose we would like to count the number of dates between 1/2/2023 and 2/2/2023.
We can type these start and end dates in cells E1 and E2, respectively, and then type the following formula into cell E3 to count the number of dates between this range:
=SUMPRODUCT((A2:A12>=$E$1)*(A2:A12<=$E$2))
The following screenshot shows how to use this formula in practice:

We can see that there are 4 dates in column A between 1/2/2023 and 2/2/2023.
We can manually verify this is correct by identifying the three dates:
- 1/4/2023
- 1/5/2023
- 1/7/2023
- 1/26/2023
Note that if we change the start or end date, the formula will automatically update to count the number of dates between the new range.
For example, suppose we change the end date to 3/2/2023:

We can see that there are 8 dates between 1/2/2023 and 3/2/2023.
Feel free to change the start and end dates to whatever dates you’d like.
The following tutorials explain how to perform other common tasks in Excel:
Cite this article
stats writer (2024). How can I count the number of occurrences of a specific date in an Excel spreadsheet?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-count-the-number-of-occurrences-of-a-specific-date-in-an-excel-spreadsheet/
stats writer. "How can I count the number of occurrences of a specific date in an Excel spreadsheet?." PSYCHOLOGICAL SCALES, 23 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-count-the-number-of-occurrences-of-a-specific-date-in-an-excel-spreadsheet/.
stats writer. "How can I count the number of occurrences of a specific date in an Excel spreadsheet?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-count-the-number-of-occurrences-of-a-specific-date-in-an-excel-spreadsheet/.
stats writer (2024) 'How can I count the number of occurrences of a specific date in an Excel spreadsheet?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-count-the-number-of-occurrences-of-a-specific-date-in-an-excel-spreadsheet/.
[1] stats writer, "How can I count the number of occurrences of a specific date in an Excel spreadsheet?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I count the number of occurrences of a specific date in an Excel spreadsheet?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
