sumproduct with wildcard for text?

N

nattie

I have the following formula that it won't work when I try to use a wildcard.
=SumProduct(($B$1:$BJ$5="high")*($F$1:$BN$5="requirement*"))

The formula works if I use one of the actual categories (ie: requirement)
But I have several "requirement" type such as "requirement is waiting",
"requirment done".

Any help would be greatly appreciated,
Thank you so very muchhh : )
 
M

Mike H

Hi,

Sumproduct doesn't accept wildcards, try this

=SUMPRODUCT(($B$1:$BJ$5="high")*(LEFT($F$1:$BN$5,11)="requirement"))

Mike
 
P

Per Jessen

Hi

Assuming "requirement" will always be the first word in the cell, this
should do it:

=SUMPRODUCT(($B$1:$BJ$5="high")*(LEFT($F$1:$BN$5,11)="requirement")

Regards,
Per
 
B

Bob Phillips

Allowing requirement anywhere in the string

=SUMPRODUCT(--($B$1:$BJ$5="high"),--(ISNUMBER(SEARCH("requirement",$F$1:$BN$5))))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Top