Count Nonblank Tasks for Today and Earlier Dates in Excel
Question details
Count nonblank task entries only when their corresponding dates are today or earlier.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Task entries are in C2:L2, with their corresponding dates in C1:L1.
- Observed behavior
- The desired count includes nonblank tasks dated today or earlier and excludes future reminders.
Check that each task entry aligns with its date in the same column and that the dates are stored as Excel dates, not text. Adjust the ranges if your tasks and dates are in different cells.
Use COUNTIFS to Count Nonblank Tasks Through Today
Count nonblank entries with valid dates from today or earlier, excluding blank dates and future reminders.
Click an empty cell where you want the task count to appear.
Type =COUNTIFS(C2:L2,"<>",$C$1:$L$1,">=1",$C$1:$L$1,"<="&TODAY()) and press Enter.
If needed, edit C2:L2 to match the task row and $C$1:$L$1 to match the date row. Keep both ranges the same size and aligned by column.

Count Due Task Entries in WPS Spreadsheets
Use the same COUNTIFS and TODAY formula in WPS Spreadsheets to count nonblank tasks dated today or earlier.
- 1. Open your spreadsheet: Open WPS Spreadsheets and select File > Open to choose your workbook.
- 2. Check the task and date rows: Confirm that tasks are in C2:L2 and corresponding dates are in C1:L1, or note the ranges used in your sheet.
- 3. Enter the count formula: Click an empty cell, enter =COUNTIFS(C2:L2,"<>",$C$1:$L$1,">=1",$C$1:$L$1,"<="&TODAY()), and press Enter.
- 4. Save the workbook: Select File > Save or Save As to keep the formula in your workbook.

Frequently Asked Questions
How do I exclude today's tasks from the count?
In the formula, replace "<="&TODAY() with "<"&TODAY(). This counts nonblank tasks dated before today.
Why does the formula include a ">=1" date condition?
The condition excludes blank date cells, which can otherwise be treated as zero in a date comparison. Enter dates as actual spreadsheet dates rather than text.
Does the formula count only completed tasks?
No. The "<>" condition counts any nonblank task entry. If completion is indicated by a specific value, replace "<>" with that value, such as "Completed".
What if my tasks and dates are in different ranges?
Replace C2:L2 and $C$1:$L$1 in the formula with your task and date ranges. The ranges must have the same dimensions, and each task must align with its corresponding date.




