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

#### Duane

##### Board Regular
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?!)

### Excel Facts

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

##### MrExcel MVP
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?!)

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

#### Duane

##### Board Regular
=SUMPRODUCT(--ISNUMBER(\$B\$2:\$B\$20),--(\$B\$2:\$B\$20 < \$A\$2:\$A\$20))

You must get tired of my saying "thanks" but again, thanks!

Replies
2
Views
410
Replies
1
Views
412
Replies
8
Views
521
Replies
3
Views
1K
Replies
0
Views
606

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.

### Which adblocker are you using?

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

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