Formula Errors

Count Pending Tasks by Month in an Excel Calendar

John WilsonJohn Wilson Nov 12, 2026 869 views

Question details

Count rows for each task and display the matching monthly total in an Excel calendar.

Count Pending Tasks by Month in an Excel Calendar
Product
Microsoft Excel calendar worksheet
Device & OS
not provided
Scenario
The user has task data with descriptions and completion dates and wants each calendar month to show the count for the corresponding task.
Observed behavior
The monthly calendar needs a formula that matches the task name and limits the date count to the month shown in the calendar header.
Before you start

Format the source task range as an Excel table named Data, with Description and Completed Date columns. Make sure each calendar month header contains a real date value rather than text, even if it is formatted to display only the month name.

Solution 1Recommended

Use COUNTIFS with monthly date boundaries

Use this method when the calendar row contains a task name and each month header contains a valid date for that month.

COUNTIFS can match the task description while counting only dates after the previous month-end and on or before the current month-end. This prevents dates from adjacent months from being included.

1
Create the Data table

Select the source task range, then choose Insert > Table in Excel. On the Table Design tab, set the table name to Data and confirm that the columns are named Description and Completed Date.

2
Check the calendar month header

Enter a real date in the calendar header cell, such as 1/1/2026 in C5, then use Home > Number Format to display it as mmmm or mmm. Do not type a month name as plain text.

3
Enter the monthly count formula

In the calendar cell for the task row and month column, enter =COUNTIFS(Data[Description],[@[Work Order Task]],Data[Completed Date],">"&EOMONTH(C$5,-1),Data[Completed Date],"<="&EOMONTH(C$5,0)). Replace C$5 with the month-header reference if your header is in another cell.

4
Fill the formula across the calendar

Use the fill handle to drag the formula across the remaining month columns. Keep the month row fixed with $ and allow the column reference to change for each month.

Use COUNTIFS with monthly date boundaries
Monthly totals update automatically: When new matching rows are added to the Data table with valid dates, the calendar totals recalculate for the appropriate month.
Count Calendar Tasks with WPS Spreadsheets

Create Monthly Task Totals in a Calendar with WPS Spreadsheets

WPS Spreadsheets lets you organize task records in a table and use Excel-compatible COUNTIFS and EOMONTH formulas to calculate monthly totals directly in your calendar layout.

  1. 1. Open the calendar workbook: Open the Excel calendar file in WPS Spreadsheets and select the worksheet containing the task data and monthly calendar.
  2. 2. Format task data as a table: Select the task range, choose Insert > Table, and name the table Data with Description and Completed Date columns.
  3. 3. Set date-based month headers: Enter the first day of each month in the calendar header cells, then choose Home > Number Format to display the month name.
  4. 4. Add the COUNTIFS formula: Click the first calendar total cell and enter the COUNTIFS formula using the task cell and month-header cell references.
  5. 5. Copy totals across months: Drag the fill handle across the calendar month columns to calculate the totals for every displayed month.
Use COUNTIFS and EOMONTH to count each task within the displayed month.Create structured task tables for clearer source data and easier formula references.Open, edit, and save Microsoft Excel .xlsx files with strong format compatibility.Use a familiar spreadsheet interface for fast migration from Excel.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my COUNTIFS formula return zero for every calendar month?

Check that Data[Completed Date] contains real Excel dates and that the month header cell, such as C5, also contains a real date. Text dates and text month names cannot be evaluated correctly by EOMONTH.

Can I show January as text while still using it in the formula?

Yes. Enter an actual date such as 1/1/2026 in the header cell, then apply a custom or built-in month format such as mmmm. The cell will display January while the formula uses the underlying date.

What does [@[Work Order Task]] mean in the formula?

It is an Excel table structured reference. It means the Work Order Task value in the current calendar table row. If your calendar is not a table, replace it with a normal cell reference such as $A8.

How do I count tasks for a different date field instead of Completed Date?

Replace Data[Completed Date] in both date criteria with the relevant table column, such as Data[Due Date] or Data[Created Date], while keeping the same EOMONTH boundaries.

Will the formula count dates on the last day of the month?

Yes. The <=EOMONTH(C$5,0) criterion includes dates on the final day of the month, while the >EOMONTH(C$5,-1) criterion starts immediately after the prior month ends.