ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   sumproduct with wildcard for text? (https://www.excelbanter.com/excel-worksheet-functions/195567-sumproduct-wildcard-text.html)

nattie

sumproduct with wildcard for text?
 
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="requi rement*"))

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 : )


Mike H

sumproduct with wildcard for text?
 
Hi,

Sumproduct doesn't accept wildcards, try this

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

Mike

"nattie" wrote:

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="requi rement*"))

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 : )


Per Jessen

sumproduct with wildcard for text?
 
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,1 1)="requirement")

Regards,
Per

"nattie" skrev i meddelelsen
...
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="requi rement*"))

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 : )



Jarek Kujawa[_2_]

sumproduct with wildcard for text?
 
try:
=SumProduct(($B$1:$BJ$5="high")*(LEFT($F$1:$BN$5,1 1)="requirement"))

Bob Phillips

sumproduct with wildcard for text?
 
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)

"nattie" wrote in message
...
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="requi rement*"))

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 : )





All times are GMT +1. The time now is 12:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com