SUMIF statement

simonf

Board Regular
Joined
Jun 18, 2002
Messages
207
=SUMIF($B$4:$B$134, "=CHAR(42)&management&CHAR(42)",$C$4:$C$134)

I'm trying to find all the cell that contains the word management in the description in B and sum all the corresponding values in C but the formula is not working. What am I doing wrong? Can I use this CHAR(42) expression here, Aladin? Thanks.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

zacemmel

Well-known Member
Joined
Apr 29, 2002
Messages
636
=SUMIF($B$4:$B$134, "=*management*", $C$4:$C$134)

Do that instead :)
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-10-29 20:48, simonf wrote:
=SUMIF($B$4:$B$134, "=CHAR(42)&management&CHAR(42)",$C$4:$C$134)

I'm trying to find all the cell that contains the word management in the description in B and sum all the corresponding values in C but the formula is not working. What am I doing wrong? Can I use this CHAR(42) expression here, Aladin? Thanks.

You need to put the word management within double quotes, but not the CHAR(42) bits. SUMIF does an equality test, if no relational operator in the condition/criteria is specified.

=SUMIF($B$4:$B$134, CHAR(42)&"management"&CHAR(42),$C$4:$C$134)

You can of course put the word management in a cell of its, say in A1, then you get:

=SUMIF($B$4:$B$134, CHAR(42)&A1&CHAR(42),$C$4:$C$134)
 

Forum statistics

Threads
1,144,281
Messages
5,723,473
Members
422,499
Latest member
think say

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
Top