Double count issue. SUMIFS/SUMIF

Tjadi

New Member
Joined
Feb 8, 2018
Messages
2
Hi all,

I am having a problem with a double counting sumif, because of and array.

<style type="text/css"><!--td {border: 1px solid #ccc;}br {mso-data-placement:same-cell;}--></style>
ExpertisesOBTotal Events
Banking / Finance, PR / Communicatie, HRM / Recruitment, IT / ICT, Management, Marketing / Product Management, SalesOB222
JuridischOB205
IT / ICT, Marketing / Product Management, SalesOB187

<colgroup><col style="width: 232px"><col width="100"><col width="100"></colgroup><tbody>
</tbody>

I want to count up all the numbers of the expertises Banking / Juridisch /Communicatie. I created the following formula:

=ArrayFormula(SUM(SUM.If(A2:A4;{"*Banking*";"*Communicatie*";"*Juridisch*"};C2:C4)))

But it double counts the first row. Is it possible to only count a row once? The outcome in this case was 649, instead of the intended 427.

Hope someone knows a way of doing this! Looking forward to hearing any solutions.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
These work in excel:

=SUM(IF(MMULT(0+ISNUMBER(SEARCH({"*Banking*","*Communicatie*","*Juridisch*"},A2:A4)),{1;1;1})>0,C2:C4))
=SUMPRODUCT(C2:C4,--(ISNUMBER(SEARCH("Banking",A2:A4))+ISNUMBER(SEARCH("Communicatie",A2:A4))+ISNUMBER(SEARCH("Juridisch",A2:A4))>0))
 
Upvote 0
Thank you so much! I spend ages on it and couldn't work it out. Second one is perfect for what I am doing.
 
Upvote 0

Forum statistics

Threads
1,215,924
Messages
6,127,725
Members
449,401
Latest member
TTXS

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