Sum If Cell Contains "this word", but not "this word"

south0085

Board Regular
Joined
Aug 15, 2011
Messages
141
I have a list of part types in column E1:E57. In cell F59, I want to add up all the ones that include the word "Cover", but I don't want it to include any that contain the word "service". Like this:

Sheet1


EF
1Mitsubishi Service Cover - ZC 28
2989A COVER 56
3B12P Cover 87
4Toyota Service - 989A Cover 100
5Toyota Service Cover 500

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:190px;"><col style="width:70px;"></colgroup><tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4



So...the formula return a total of: 143

Thank you for your help.
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Excel 2013/2016
ABCDE
1Mitsubishi Service Cover - ZC28
2989A COVER56
3B12P Cover87
4Toyota Service - 989A Cover100143
5Toyota Service Cover500
6
Sheet1
Cell Formulas
RangeFormula
E4=SUMIFS(B1:B5,A1:A5,"*cover*",A1:A5,"<>*service*")
 
Upvote 0
Excel 2013/2016
ABCDE
1Mitsubishi Service Cover - ZC28
2989A COVER56
3B12P Cover87
4Toyota Service - 989A Cover100143
5Toyota Service Cover500
6

<colgroup><col style="width: 25pxpx"><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
E4=SUMIFS(B1:B5,A1:A5,"*cover*",A1:A5,"<>*service*")

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Thank you much! The <> is the part I couldn't figure.
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,580
Members
449,174
Latest member
chandan4057

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