Count the number of times dates in certain month appears in range in Microsoft Excel

In this article, you will learn how to count the number of times dates in certain month appear in range in Microsoft Excel. To solve this problem we use SUM function along with MONTH and YEAR function.

In this problem:-

  • SUM function will help to return the count on the basis of criteria.
  • MONTH function will help to provide the month for matching.
  • YEAR function will help to provide the year for matching.

Let’s understand with example:-

We have a range of date and in other ranges we have criteria list of month and Year.

image 1


Follow below steps:-

  • Enter the formula in cell E2
  • =SUM((MONTH($A$2:$A$12)=B2)*(YEAR($A$2:$A$12)=C2)*1)

image 2

  • Press the key Ctrl+Shift+Enter
  • The function will return 1

image 3

  • Copy the same formula in the range.

image 4
Taken away:-

  • How to count the numbers through SUM formula
  • How to count on the basis of Month and Year (multiple criteria)

image 48

If you liked our blogs, share it with your friends on Facebook. And also you can follow us on Twitter and Facebook.
We would love to hear from you, do let us know how we can improve, complement or innovate our work and make it better for you. Write us at


Leave a Reply

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

Terms and Conditions of use

The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.