ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SumProduct w/WildCard (https://www.excelbanter.com/excel-worksheet-functions/73834-sumproduct-w-wildcard.html)

briank

SumProduct w/WildCard
 
I am trying to create a sumproduct command that allows for a wildcard in one
of the criteria. In the example below I want the term Jone, Jones, Joneston,
etc... to all fit the bill. Is there a way to incorporate a wildcard into
this command?
=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(ApplStaff!$B$2:$B$482="Jone*"))

Don Guillett

SumProduct w/WildCard
 
try
=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(ApplStaff!$B$2:$B$482="Jone*"))

=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(left(ApplStaff!$B$2:$B$482,4)="Jone"))--Don GuillettSalesAid "briank" wrote in ...I am trying to create a sumproduct command that allows for a wildcard inone of the criteria. In the example below I want the term Jone, Jones,Joneston, etc... to all fit the bill. Is there a way to incorporate a wildcard into this command?=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(ApplStaff!$B$2:$B$482="Jone*"))


Sloth

SumProduct w/WildCard
 
You can use the FIND function...

=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--ISNUMBER(FIND("Jone",ApplStaff!$B$2:$B$482))

I don't think you can use a wildcard.

"briank" wrote:

I am trying to create a sumproduct command that allows for a wildcard in one
of the criteria. In the example below I want the term Jone, Jones, Joneston,
etc... to all fit the bill. Is there a way to incorporate a wildcard into
this command?
=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(ApplStaff!$B$2:$B$482="Jone*"))


briank

SumProduct w/WildCard
 
Thanks Don. That works gr8.

"Don Guillett" wrote:

try
=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(ApplStaff!$B$2:$B$482="Jone*"))

=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(left(ApplStaff!$B$2:$B$482,4)="Jone"))--Don GuillettSalesAid "briank" wrote in ...I am trying to create a sumproduct command that allows for a wildcard inone of the criteria. In the example below I want the term Jone, Jones,Joneston, etc... to all fit the bill. Is there a way to incorporate a wildcard into this command?=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(ApplStaff!$B$2:$B$482="Jone*"))



Don Guillett

SumProduct w/WildCard
 
glad to help

--
Don Guillett
SalesAid Software

"briank" wrote in message
...
Thanks Don. That works gr8.

"Don Guillett" wrote:

try
=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(ApplStaff!$B$2:$B$482="Jone*"))


=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(left(ApplStaff!$B$2:$B$482,4)="Jone"))--Don
GuillettSalesAid
"briank"
wrote in
...I am
trying to create a sumproduct command that allows for a wildcard inone
of the criteria. In the example below I want the term Jone,
Jones,Joneston, etc... to all fit the bill. Is there a way to
incorporate a wildcard into this
command?=SUMPRODUCT(--(ApplStaff!$A$2:$A$482=$B$5),--(ApplStaff!$B$2:$B$482="Jone*"))






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

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