ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Text wild card search (https://www.excelbanter.com/excel-worksheet-functions/119495-text-wild-card-search.html)

chad

Text wild card search
 
Below is a sumproduct formula that works great:

=SUMPRODUCT((OFFSET(Chk_COG_Build!$A$1,4,1,CountA! $B$2,1)="Dessert")*(OFFSET(Chk_COG_Build!$A$1,4,2, CountA!$B$2,1)<=AH$4)*(OFFSET(Chk_COG_Build!$A$1,4 ,3,CountA!$B$2,1)=AH$4))

I would like to add one more set of criteria into this formula but I am not
sure as to how. I would like to add something like :

OFFSET(Chk_COG_Build!$A$1,4,,CountA!$B$2,1)="Prici ng")

But I would like the formula to look for "pricing" ANYWHERE within the cell
it is referencing and I am not sure as to how to go about this. Can anyone
please help me out?

Thanks,
Chad





Biff

Text wild card search
 
Add this array to your formula:

(ISNUMBER(SEARCH("pricing",OFFSET(Chk_COG_Build!$A $1,4,,CountA!$B$2,1))))

Biff

"Chad" wrote in message
...
Below is a sumproduct formula that works great:

=SUMPRODUCT((OFFSET(Chk_COG_Build!$A$1,4,1,CountA! $B$2,1)="Dessert")*(OFFSET(Chk_COG_Build!$A$1,4,2, CountA!$B$2,1)<=AH$4)*(OFFSET(Chk_COG_Build!$A$1,4 ,3,CountA!$B$2,1)=AH$4))

I would like to add one more set of criteria into this formula but I am
not
sure as to how. I would like to add something like :

OFFSET(Chk_COG_Build!$A$1,4,,CountA!$B$2,1)="Prici ng")

But I would like the formula to look for "pricing" ANYWHERE within the
cell
it is referencing and I am not sure as to how to go about this. Can
anyone
please help me out?

Thanks,
Chad








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

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