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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Maybe:

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

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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