Calculation Issues

Count Excel Rows Where One Date Is Greater Than or Equal to Another

Khadija KhanKhadija Khan Dec 2, 2026 868 views

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.

Count Excel Rows Where One Date Is Greater Than or Equal to Another
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.
Before you start

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.

Solution 1Recommended

Use SUMPRODUCT to compare the date columns

Count matching rows without a helper column and exclude rows where either date is blank.

1
Select the result cell

Open the worksheet where you want the count and click an empty cell.

2
Enter the formula

Enter =SUMPRODUCT((Sheet1!A1:A100>=Sheet1!B1:B100)*(Sheet1!A1:A100<>"")*(Sheet1!B1:B100<>"")) and press Enter.

3
Adjust the references

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 SUMPRODUCT to compare the date columns
Choose the comparison direction: The formula counts rows where column A is greater than or equal to column B. Reverse the references or use <= if the other date should be greater.
Count dates without a helper column

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. 1. Open the workbook: Open WPS Spreadsheet and use Open to select the workbook containing your date columns.
  2. 2. Choose a result cell: Click the worksheet tab where you want the count, then select an empty cell.
  3. 3. Enter the formula: Enter =SUMPRODUCT((Sheet1!A1:A100>=Sheet1!B1:B100)*(Sheet1!A1:A100<>"")*(Sheet1!B1:B100<>"")) and press Enter.
  4. 4. Update the references: Replace Sheet1 and the two ranges with the actual source sheet and matching date ranges in your workbook.
Compare date columns without adding a helper columnExclude rows with blank dates from the countOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface for formulas and worksheets
microsoft office alternative - wps office

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.