Function Problems

Count Nonblank Tasks for Today and Earlier Dates in Excel

Elise WilliamsElise Williams Nov 18, 2026 869 views

Question details

Count nonblank task entries only when their corresponding dates are today or earlier.

Count Nonblank Tasks for Today and Earlier Dates in Excel
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.
Before you start

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.

Solution 1Recommended

Use COUNTIFS to Count Nonblank Tasks Through Today

Count nonblank entries with valid dates from today or earlier, excluding blank dates and future reminders.

1
Select the result cell

Click an empty cell where you want the task count to appear.

2
Enter the formula

Type =COUNTIFS(C2:L2,"<>",$C$1:$L$1,">=1",$C$1:$L$1,"<="&TODAY()) and press Enter.

3
Check the ranges

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.

Use COUNTIFS to Count Nonblank Tasks Through Today
Count only earlier dates: To exclude today as well as future dates, replace "<="&TODAY() with "<"&TODAY(). The formula counts any nonblank task entry, not only entries marked with a particular completion status.
Count tasks in WPS Spreadsheets

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. 1. Open your spreadsheet: Open WPS Spreadsheets and select File > Open to choose your workbook.
  2. 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. 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. 4. Save the workbook: Select File > Save or Save As to keep the formula in your workbook.
Count task entries by their corresponding datesOpen and edit Microsoft Excel XLSX filesUse familiar spreadsheet formulas and cell referencesWork with spreadsheets using a free office suite
QA img-9

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.