Sum Values with different criteria without repeating

jacquelineBo

New Member
Joined
Dec 30, 2015
Messages
1
Hello,

I need to sum the amount that appears in the column C every time that on the column B appears "tech" or "error", however there are lines on the column B that appears Tech and Error in the same cell and I dont want to sum the amounts of column C twice. How can I do it, please?



TechTech op2
ErrorTech problems5
tech error6
hiden7
open5
error op9
tech error with computer4
error on the table2

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Try this:

=(SUMIF(B$1:B$8,"*tech*",C$1:C$8)+SUMIF(B$1:B$8,"*error*",C$1:C$8))-SUMIFS(C$1:C$8,B$1:B$8,"*error*",B$1:B$8,"*tech*")
 
Upvote 0
Row\Col
A​
B​
C​
D​
1​
TechTech op
2​
2​
ErrorTech problems
5​
3​
tech error
6​
4​
28​
hiden
7​
5​
open
5​
6​
error op
9​
7​
tech error with computer
4​
8​
error on the table
2​

<tbody>
</tbody>


In A4 control+shift+enter:

=SUM(IF(MMULT(ISNUMBER(SEARCH(TRANSPOSE(A1:A2),C1:C8))+0,ROW(A1:A2)^0),D1:D8))

If you want to avoid matching tech against technician...

Control+shift+enter:

=SUM(IF(MMULT(ISNUMBER(SEARCH(TRANSPOSE(" "&A1:A2&" ")," "&C1:C8&" "))+0,ROW(A1:A2)^0),D1:D8))
 
Upvote 0

Forum statistics

Threads
1,215,493
Messages
6,125,128
Members
449,206
Latest member
burgsrus

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