SUMPRODUCT formula error

theticklives

New Member
Joined
Jun 11, 2008
Messages
1
hi
this is my first post, after having read many threads and searched for answers successfully.

My .xls is a 2003 version and is summing injury data. I am trying to look up info on another sheet meeting criteria. i have been successful with the formula with 2 arrays, but adding the third array seems to cause error.

I have a sumproduct formula that returns an #value error (data is of the wrong type):
=SUMPRODUCT(--('Incident log'!A4:A11="Jan"),--('Incident log'!F1:F11="resins"),--('Incident log'!G1:G11="UNSAFE CONDITION"))

I am searching a spreadsheet of text and converting to true false with the --. This works well for the 1st two arrays, but it seems like the last array does not get converted to the 1 or 0, resulting in the formula error. i got this far with some help here at work, but we cant figure this out.


ANY help would be great
thx in advance!
theticklives
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Welcome to the board...

Best I can see is you get the error because not all ranges are the same size...

=SUMPRODUCT(--('Incident log'!A4:A11="Jan"),--('Incident log'!F1:F11="resins"),--('Incident log'!G1:G11="UNSAFE CONDITION"))

They should all be either rows 1-11 or 4-11, not a mixture of the two..

Hope this helps..
 
Upvote 0

Mike Blackman

Well-known Member
Joined
Jun 8, 2007
Messages
2,494
Hi,

Your three ranges all need to equal the same range;

Your first Array is A4:A11,
Second is F1:F11
Third is G1:G11

The first should read A1:A11 or the others F4:G11 for this to work.
 
Upvote 0

Forum statistics

Threads
1,191,586
Messages
5,987,502
Members
440,098
Latest member
MickyMouse123

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