Note: The other languages of the website are Google-translated. Back to English
English English

Create a summary count by month with COUNTIFS in Excel

In Excel, we can use the COUNTIFS function to count cells with given criteria, this tutorial will show you how to use this COUNTIFS function along with EDATE function to create a summary count by month in Excel.


Create a summary count by month with COUNTIFS and EDATE functions

To create a summary count by month, you can use a formula based on the COUNTIFS and EDATE functions, the generic syntax is:

=COUNTIFS(date_range,">="&first_day_of_month,date_range,"<"&EDATE(first_day_of_month,1))
  • date_range: The list of dates you want to count;
  • first_day_of_month: The cell that contains the first day of the month.

Assuming you have a list of dates in column A, now, you want to get a total count based on some specific months. In this case, you should enter the first days of the months that you want to count as below screenshot shown:

Then, please apply the following formula into a blank cell to put the result:

=COUNTIFS($A$2:$A$13,">="&C2,$A$2:$A$13,"<"&EDATE(C2,1))

And then, drag the fill handle to copy this formula to other cells you need, and the total number of cells which belong to the certain month have been returned at once, see screenshot:


Explanation of the formula:

=COUNTIFS($A$2:$A$13,">="&C2,$A$2:$A$13,"<"&EDATE(C2,1))

  • The COUNTIFS function is used to count the number of cells based on multiple criteria, in this formula, C2 is the first day of the month.
  • To get the total count per month, you need to provide another criteria –the first day of next month. This can be returned by using the EDATE function.
  • The whole formula means that the dates to be counted must be greater than or equal to the date in cell C2 and less than the first day of next month provided by the EDATE function.

Relative function used:

  • COUNTIFS:
  • The COUNTIFS function returns the number of cells that meet one single criterion or multiple criteria.
  • EDATE:
  • The COUNTIFS function returns serial number which is n months in future or past.

More articles:

  • Count Number Of Dates By Year, Month
  • When working on Excel worksheet, sometimes, you may want to count the cells where dates from a given year or month as below screenshot shown. To solve this task in Excel, you can use the SUMPRODUCT, YEAR and MONTH functions to create formulas to count the number of dates belongs to the specific year or month as you need.
  • Count Number Of Cells Between Two Values / Dates
  • Have you ever tried to get or count the number of cells between two given numbers or dates in Excel as below screenshot shown? This article will talk about some useful formulas for dealing with it.
  • Count Number Of Cells Contain Numeric Or Non-Numeric Values
  • If you have a range of data which contains both numeric and non- numeric values, and now, you may want to count the number of numeric or non-numeric cells as below screenshot shown. This article, I will talk about some formulas for solving this task in Excel.

The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Would you like to complete your daily work quickly and perfectly? Kutools for Excel brings 300 powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) and save 80% time for you.

  • Designed for 1500 work scenarios, helps you solve 80% Excel problems.
  • Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands.
  • Become an Excel expert in 3 minutes. No longer need to remember any painful formulas and VBA codes.
  • 30-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years.
Ribbon of Excel (with Kutools for Excel installed)

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Firefox, And New Internet Explorer.
Screen Shot of Excel (with Office Tab installed)
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations