Solved

# Sumproduct in Excel

Posted on 2014-08-23
144 Views
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]))
0
Question by:Lawrence Salvucci

LVL 20

Assisted Solution

Replace
--(Table1[Item Desc.]="*PDB*")
with
--(ISERROR(SEARCH("PDB",Table1[Item Desc.]))=FALSE)
0

LVL 50

Accepted Solution

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

LVL 1

Author Closing Comment

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

## Featured Post

### Suggested Solutions

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.