SumIf for multiple criteria with text string

soccer504

New Member
Joined
Aug 27, 2010
Messages
3
Hi,
I am trying to use a SumIF statement (in excel 2003) for multiple criteria where one criteria is a string. I'm trying to sum column C if column A contains the word "car" and column B contains any text with any part of the word "blue". I've tried sumproduct, but I can't get it to recognize my string ("*blue*"). Thanks! =)
 
Last edited:

Excel Facts

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

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
Hi,
I am trying to use a SumIF statement (in excel 2003) for multiple criteria where one criteria is a string. I'm trying to sum column C if column A contains the word "car" and column B contains any text with any part of the word "blue". I've tried sumproduct, but I can't get it to recognize my string ("*blue*"). Thanks! =)

Try...

=SUMPRODUCT(--($A$2:$A$100="car"),--ISNUMBER(SEARCH("blue",$B$2:$B$100)),$C$2:$C$100)
 

Try Harder

New Member
Joined
Feb 1, 2011
Messages
1
Thank you Aladin!!! I was ready to jump out the window before the ISNUMBER solution worked for me too.
 

Forum statistics

Threads
1,136,855
Messages
5,678,143
Members
419,746
Latest member
tysonboy82

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