kinda but apparently not quite an array formula...?

Duane

Board Regular
Joined
Mar 14, 2002
Messages
229
I have dates in column B, and I want to count only those dates that are less than the dates in column A. (in other words, count the date in B2 as 1 if it is less than the date in A2, the date in B17 if it is less than the date in A17, etc....and the final count of all dates in B less than dates in A is...??

I'm sure this is a really easy one, but I didn't even know how to search for it incase it had already been answered umpteen times (isn't that word "umpteen" great?!)

Thanks for any help you can provide.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Duane said:
I have dates in column B, and I want to count only those dates that are less than the dates in column A. (in other words, count the date in B2 as 1 if it is less than the date in A2, the date in B17 if it is less than the date in A17, etc....and the final count of all dates in B less than dates in A is...??

I'm sure this is a really easy one, but I didn't even know how to search for it incase it had already been answered umpteen times (isn't that word "umpteen" great?!)

Thanks for any help you can provide.

=SUMPRODUCT(--ISNUMBER($B$2:$B$20),--($B$2:$B$20 < $A$2:$A$20))
 
Upvote 0

Forum statistics

Threads
1,195,673
Messages
6,011,087
Members
441,582
Latest member
Topkapi

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
Top