Range not returning value

Enzo_Matrix

Board Regular
Joined
Jan 9, 2018
Messages
113
Code:
=SUMPRODUCT(--(YEAR(B2:B589)=2017))
=SUMPRODUCT(--(YEAR(B2:B589)=2018))
=SUMPRODUCT(--(YEAR(B2:B589)=2019))
I am using the code above to count based on a date in a continually expanding table.

If i expand the range beyond B589 it returns #VALUE regardless of data that is in the table and I'm not sure why. I need the range to exceed B1000 and I'm sure this is going to be a simple fix, but I don't know what it is and could use some help.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,214,987
Messages
6,122,618
Members
449,092
Latest member
amyap

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