column contains strings of list in sumproduct

mos

New Member
Joined
May 8, 2011
Messages
15
Hello,

basically I want to do the following:

1. summing up the value of each category of "product" for example
2. only of rows where "comment" contains one of the words in the list

iwCtM.png


I found this code, but I cant find a way to implement it in my sumproduct.
As soon as I dont use the Sumproduct in what I found, it doesnt work anymore.
Code:
= SUMPRODUCT(ISNUMBER(1/(SEARCH($D$3:$D$6;0&C9;1)>1))*1))
whole code (I try to use) C9 --- C9:C12
Code:
 =SUMPRODUCT(($A$9:$A$12=A4)*($B$9:$B$12)* SUMPRODUCT(ISNUMBER(1/(SEARCH($D$3:$D$6;0&C9:C12;1)>1))*1))

the code above is in the row with the blue 1,0,1,1.
what das the "0&" do to the link to C9?

Does anybody have an hint how to modify or what else to use?

Other solutions give always back TRUE, if my list contains empty cells.. :(


Thanks, cheers,
mos
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hello,

basically I want to do the following:

1. summing up the value of each category of "product" for example
2. only of rows where "comment" contains one of the words in the list

iwCtM.png


I found this code, but I cant find a way to implement it in my sumproduct.
As soon as I dont use the Sumproduct in what I found, it doesnt work anymore.
Code:
= SUMPRODUCT(ISNUMBER(1/(SEARCH($D$3:$D$6;0&C9;1)>1))*1))
whole code (I try to use) C9 --- C9:C12
Code:
 =SUMPRODUCT(($A$9:$A$12=A4)*($B$9:$B$12)* SUMPRODUCT(ISNUMBER(1/(SEARCH($D$3:$D$6;0&C9:C12;1)>1))*1))

the code above is in the row with the blue 1,0,1,1.
what das the "0&" do to the link to C9?

Does anybody have an hint how to modify or what else to use?

Other solutions give always back TRUE, if my list contains empty cells.. :(


Thanks, cheers,
mos
B4, control+shift+enter (CSE), not just enter, and copy down:
Code:
=SUMPRODUCT(
    --(MMULT(--ISNUMBER(SEARCH(" "&TRANSPOSE($D$3:$D$4)&" ",
         " "&$C$9:$C$12&" ")),ROW($D$3:$D$4)^0)),
    --($A$9:$A$12=A4),
    $B$9:$B$12)

Note. CSE is required because of a TRANSPOSE call.
 
Upvote 0
B4, control+shift+enter (CSE), not just enter, and copy down:
Code:
=SUMPRODUCT(
    --(MMULT(--ISNUMBER(SEARCH(" "&TRANSPOSE($D$3:$D$4)&" ",
         " "&$C$9:$C$12&" ")),ROW($D$3:$D$4)^0)),
    --($A$9:$A$12=A4),
    $B$9:$B$12)

Note. CSE is required because of a TRANSPOSE call.

Aladin, very beautiful!!!! :pray:

I was breaking my head and got a solution only with a helper column...

One more for my collection!

M.
 
Upvote 0
It is actually awesome. Amazing how matrixmult can help you in real life.

Great that some are so passionate about it :)

Thanks a lot.
 
Upvote 0

Forum statistics

Threads
1,224,566
Messages
6,179,555
Members
452,928
Latest member
101blockchains

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