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.
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:
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.
The reference to H4 has the row locked (H$4) so priority doesn't change as the formula is copied down.
The reference to F5 has the column locked ($F5) so the date doesn't change as the formula is copied across.
The named ranges "dates" and "priorities" are automatically absolute.
Learn key Excel formulas and functions with concise, clear videos. Master absolute/relative addresses, dates, text, named ranges, and tools for troubleshooting. Each video comes with a practice worksheet to follow along. Start today - instant access, 100% guarantee.