Count 'cell containing...' in sumproduct

superOK

New Member
Joined
Jun 29, 2011
Messages
2
Hi

I am trying to create a summary table from a spreadsheet containing a lot of data, and I am a bit stuck on how to count cells in one column that contain a specific text string AND cells in the next column that contain a specific text string as part of the cell.

At the moment I am using SUMPRODUCT to count, for example, the number of rows in which A:A=D3 AND B:B=E2. The problem I have is that the cells in B:B sometimes contain E3 as part of a string. Can anyone please offer any advice as to how I can include these cells in the count?

Hopefully the attached example makes sense! What I want is for the 'SUMMARY TABLE' to read:

Product Version Total
P01 v1 3
P01 v2 2
P02 v1 2
P02 v2 1

Thanks in advance!

Ben

unledcve.png
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hi,

Maybe this

Formula in F3
=SUMPRODUCT(--($A$3:$A$8=D3),--(ISNUMBER(SEARCH(E3,$B$3:$B$8))))
copy down

HTH

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,582
Messages
6,179,670
Members
452,936
Latest member
anamikabhargaw

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