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,482
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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Maybe:

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

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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