Array formula date range

Pauly33

New Member
Joined
Oct 5, 2006
Messages
4
Hello,
How can I modify the below formula for a date range?
I only need data from 2004, but data goes through 2006

=SUM(IF((Incidents!J3:J400<>" "),IF(Incidents!A3:A400>=DATE(2004,1,1),1,0)))

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".

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
More normally you'd use <>"" [not blank] than <>" " [not space]

so try

=SUM((incidents!J3:J400<>"")*(YEAR(incidents!A3:A400)=2004))))

confirmed with CTRL+SHIFT+ENTER
 

Forum statistics

Threads
1,141,720
Messages
5,708,086
Members
421,545
Latest member
TWR

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