=sumproduct returns #Value

Bandito1

Board Regular
Joined
Oct 18, 2018
Messages
234
Office Version
  1. 2016
Platform
  1. Windows
Hello,

My formula =SUMPRODUCT(--(TEXT('[Registratie review.xlsx]2016-2022'!$H$:$H$;"mmmm")=B3)*(YEAR('[Registratie review.xlsx]2016-2022'!$H$:$H$)=B$1)*('[Registratie review.xlsx]2016-2022'!$H$:$H$>0))

returns #VALUE

I read on internet that this is caused because a cell is formatted wrong or contains text.
The H column consists out of 40813 rows..

When i filter i see only dates.
I select the whole H column and format to dates. Still #VALUE

Since the files consists out of 40813 rows.
Is there a fast way to find out what cell is causing this?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Formatting wont change the value of the cell. It will still be textual regardless of the formatting. Its pretty likely you have dates that arent true dates if you are getting value error.
 
Upvote 0
I see, and they show up like normal dates when i filter?
Is there a way to find these non true dates?
 
Upvote 0
I think the problem is; sometimes it's 01-okt-22 and sometimes 01-10-22

Any way to find those xx-okt-22 so i can change them easily to xx-10-22?
40813 rows with dates..
 
Upvote 0
Do you have headers in row 1 by any chance?
 
Upvote 0
That's the problem then. You are applying the YEAR function to an entire column which includes the header row (and is very inefficient). If the header row is text, that will return a #VALUE error and stop the formula from working. Can you not limit the ranges used?
 
Upvote 0
Changed it $H$2:$H$1000000

Tried to look up how to do H2 to end of data in column but can't find that
 
Upvote 0
Is 1m rows really necessary? If you only have about 48k rows of data I'd say that seems like overkill...
 
Upvote 0

Forum statistics

Threads
1,215,381
Messages
6,124,614
Members
449,175
Latest member
Anniewonder

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