Count rows with 2 date columns where either or both dates past today's date

John_w

MrExcel MVP
Joined
Oct 15, 2007
Messages
8,493
I have a sheet with dates in two columns: Start Date (column A) and Due Date (column B), rows 2:20. I'm looking for a formula which compares today's date with Start Date and Due Date and if today's date is past either or both of those dates then count that row as 1. The formula should return the total number of rows where today's date is past either the Start Date or the Due Date, or both dates. Either date or both dates on a row may be empty.

Thanks.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Maybe:

=SUMPRODUCT(SIGN((TODAY()>A2:A20)*(A2:A20<>"")+(TODAY()>B2:B20)*(B2:B20<>"")))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top