Count Excel Rows Where One Date Is Greater Than or Equal to Another
Question details
Count rows where a date in one column is greater than or equal to the date in another column, without adding a helper column.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Two date columns are on one worksheet, and the count may be placed on another worksheet.
- Observed behavior
- The desired result is a count of rows where the first date minus the second date is zero or greater.
Identify the two date columns and their matching row ranges. Make sure the populated cells contain actual spreadsheet dates rather than text, and decide whether rows with blank dates should be excluded.
Use SUMPRODUCT to compare the date columns
Count matching rows without a helper column and exclude rows where either date is blank.
Open the worksheet where you want the count and click an empty cell.
Enter =SUMPRODUCT((Sheet1!A1:A100>=Sheet1!B1:B100)*(Sheet1!A1:A100<>"")*(Sheet1!B1:B100<>"")) and press Enter.
Replace Sheet1 and the A1:A100 and B1:B100 ranges with your source sheet and date columns. Keep the ranges the same size and use matching rows.

Use SUM with an array comparison
Use a shorter formula when blank-date rows do not need to be excluded.
Compare Date Columns in WPS Spreadsheet
Use SUMPRODUCT in WPS Spreadsheet to count rows where one date is greater than or equal to another, with the result on a separate sheet.
- 1. Open the workbook: Open WPS Spreadsheet and use Open to select the workbook containing your date columns.
- 2. Choose a result cell: Click the worksheet tab where you want the count, then select an empty cell.
- 3. Enter the formula: Enter =SUMPRODUCT((Sheet1!A1:A100>=Sheet1!B1:B100)*(Sheet1!A1:A100<>"")*(Sheet1!B1:B100<>"")) and press Enter.
- 4. Update the references: Replace Sheet1 and the two ranges with the actual source sheet and matching date ranges in your workbook.

Frequently Asked Questions
How do I place the count on a different worksheet?
Select a cell on the destination sheet and use source-sheet references in the formula, such as Sheet1!A1:A100. If the sheet name contains spaces, enclose it in single quotes, for example 'Project Dates'!A1:A100.
Are equal dates included in the count?
Yes. The >= operator includes rows where the two dates are equal. Use > instead if the first date must be strictly later.
How can I exclude rows with missing dates?
Use the SUMPRODUCT formula with both nonblank checks: (Sheet1!A1:A100<>"") and (Sheet1!B1:B100<>""). This excludes a row if either date is blank.
Why might a date comparison give an unexpected result?
Check that the date cells contain actual spreadsheet dates rather than text, and confirm that both ranges cover the same rows. Also check the comparison direction and whether blank cells should be included.




