Using Wildcards in Array If Then Statements

BetterBeef

New Member
Joined
Mar 18, 2010
Messages
42
I have the following formula:

={IF($F$9:$F$25="STEER",SUMIF($C$9:$C$25,"*TONGUE*",$D$9:$D$25),0)}

Unfortunately, the formula only runs the second part of the formula (the SUMIF part). It is essentially picking up all cells that have TONGUE in them and disregarding what variable is in Column F.

I need to set this up so that if "STEER" is in the cell in column F, it will sum it up, only if "Tongue" is in the description somewhere in column C.

Any clue what I am doing wrong?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
On systems prior to 2007...

=SUMPRODUCT(--($F$9:$F$25="STEER"),--ISNUMBER(SEARCH("TONGUE",$C$9:$C$25)),$D$9:$D$25)

Otherwise...

=SUMIFS($D$9:$D$25,$F$9:$F$25,"STEER",$C$9:$C$25,"*TONGUE*")
 
Upvote 0

Forum statistics

Threads
1,216,943
Messages
6,133,639
Members
449,822
Latest member
mrsunshine

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