Sumproduct in Excel

I'm trying to use the sumproduct formula with an array that looks for a specific value in my cells instead of the entire value of the cell. I need to see if my cells have this specific value somewhere in the cell. But for some reason this isn't working. Can anyone help me figure out what I'm doing wrong?

This is the array that isn't working: --(Table1[Item Desc.]="*PDB*")

This is my entire formula

SUMPRODUCT(--(Table1[Ship Date]>Summary!Q18),--(Table1[Ship Date]<Summary!R18),--(Table1[Facility]=Summary!$U$4),--(Table1[Item Desc.]="*PDB*"),(Table1[M2M Invoice Total]))
LVL 1
Lawrence SalvucciInformation Technology ManagerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ejgil HedegaardCommented:
Replace
--(Table1[Item Desc.]="*PDB*")
with
--(ISERROR(SEARCH("PDB",Table1[Item Desc.]))=FALSE)
0
barry houdiniCommented:
Ejgil's suggestion should work OK but using ISNUMBER is simpler, i.e.

--ISNUMBER(SEARCH("PDB",Table1[Item Desc.]))

.....but if you have excel 2007 or later SUMIFS would be preferable - it's more efficient and it will accept the wildcards that SUMPRODUCT doesn't, i.e.

=SUMIFS(Table1[M2M Invoice Total],Table1[Ship Date],">"&Summary!Q18,Table1[Ship Date],"<"&Summary!R18,Table1[Facility],Summary!$U$4,Table1[Item Desc.],"*PDB*")

regards, barry
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Lawrence SalvucciInformation Technology ManagerAuthor Commented:
Thank you both for your help. I wasn't aware that you couldn't use the wildcard with SUMPRODUCT. I went with the SUMIFS solution and it works perfectly.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.