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

Data Analysis

  • How To Insert and Customize Sparklines in Excel
  • How to Sort by Color in Excel
  • Conditional Formatting Data bars Examples in Excel
  • Add Outline to Data in Excel
  • Randomize/ Shuffle List in Excel

References

  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • How to reference named range different sheet in Excel
  • Merge tables with VLOOKUP in Excel
  • How to get address of last cell in range in Excel
  • Last row number in range

Data Validations

  • Excel Data validation exists in list
  • Excel Data validation specific characters only
  • Excel Data validation with conditional list
  • Excel Data validation allow weekday only
  • Excel Data validation whole percentage only

Summary count by month with COUNTIFS in Excel

by

This tutorial shows how to work Summary count by month with COUNTIFS in Excel using the example below;

Formula

=COUNTIFS(dates,">="&A1,dates,"<"&EDATE(A1,1))

Explanation

To create a summary count by month, you can use the COUNTIFS function and the EDATE function with two criteria.

In the example shown, the formula in G5 is:

=COUNTIFS(dates,">="&F5,dates,"<"&EDATE(F5,1))

How this formula works

In this example, we have a list of 100 issues in Columns B to D. Each issue has a date and priority. We are also using the named range “dates” for C5:C104 and “priorities” for D5:D105 .

Starting in column F, we have a summary table that shows a total count per month, and a total count per month per priority.

Worked Example:   Basic text sort formula in Excel

The first column of the summary table is a date for the first of each month in 2015. Inside COUNTIFS, we need to supply criteria that captures all data by date.  To generate a total count per month, we need criteria that counts all issues that appear in each month.

Since we have actual dates in column F, we can easily construct the criteria we need using the date itself, and a second date created with the EDATE function. These two criteria appear inside COUNTIFS like so:

dates,">="&F5,dates,"<"&EDATE(F5,1)

Roughly translated as “dates greater than or equal to the date in F5 and less than the date in F5 plus one month”.  This is a convenient way to generate “brackets” for each month with one date only.

Worked Example:   Count cells that do not contain many strings in Excel

When the formula is copied down column G, COUNTIFS generates the correct count for each month.

Note: if you don’t want to see full dates in column F, just apply the custom date formats “mmm” or “mmmm” to display the month names only.

With Priority

To generate a count that takes into account priority, we are using this formula in H5:

=COUNTIFS(dates,">="&$F5,dates,"<"&EDATE($F5,1),priorities,H$4)

Here we’ve added an additional criteria range of “priorities” paired with H4 for the criteria itself. In this version of the formula, we get a count by month broken down by the priority, which is picked up directly from row 5.

Worked Example:   Count items in list in Excel

Notes:

  1. The reference to H4 has the row locked (H$4) so priority doesn’t change as the formula is copied down.
  2. The reference to F5 has the column locked ($F5) so the date doesn’t change as the formula is copied across.
  3. The named ranges “dates” and “priorities” are automatically absolute.

Post navigation

Previous Post:

44 Practical Excel IF function Examples

Next Post:

Large with criteria 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

  • Check multiple cells are equal in Excel
  • How to use IFS function in Excel
  • Nested IF function example in Excel
  • How to use Excel FALSE Function
  • IFNA function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get last working day in month in Excel
  • WEEKDAY function: Description, Usage, Syntax, Examples and Explanation
  • Extract time from a date and time in Excel
  • WORKDAY function: Description, Usage, Syntax, Examples and Explanation
  • TIMEVALUE function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Group numbers at uneven intervals in Excel
  • Map inputs to arbitrary values in Excel
  • Running count group by n size in Excel
  • Group times into unequal buckets in Excel
  • Group numbers with VLOOKUP in Excel

General

  • Find, Trace and Correct Errors in Excel Formulas using ‘Formula Auditing’
  • Spell Check in Excel
  • How to generate random date between two dates in Excel
  • Convert column letter to number in Excel
  • Flash Fill in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning