SUMPRODUCT with 3 Arrays - What am i doing wrong?

skinfreak

Board Regular
Joined
May 23, 2003
Messages
152
Code:
=SUMPRODUCT(($M$5:$M$434=$M$5)*($S$5:$S$434=$S$14)*($S$5:$S$434=$S$190))

To clarify:

Column M has a specific value at cell M5 that I want to search for. The same can be said for the contents of cells S14 and S190. But when I run the above forumula, I get an answer of 0. If I remove the end argument, i get 74. If I remove themiddle argument, I get 14. Can I just tack on extra arrays to a sumproduct? I want a result that diplays the number or rows with either M5 & S14 or M5 and S190. Or, should I just run two sumproducts. I think i need an OR in there somewhere?

Thanks!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
skinfreak said:
Can you use wildcard text strings with this formula? eg. "*"&"textstring"&"*"??

Put the condition string (without the wildcards around) in a cell of its own, say, X2 and add a term/conditional to the SumProduct formula:

=SUMPRODUCT(--ISNUMBER(SEARCH(X2,RangeOfInterest)),...)
 
Upvote 0

Forum statistics

Threads
1,214,426
Messages
6,119,414
Members
448,895
Latest member
omarahmed1

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