Sumproduct in Excel

Posted on 2014-08-23
Last Modified: 2014-08-24
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]))
Question by:Lawrence Salvucci
    LVL 20

    Assisted Solution

    by:Ejgil Hedegaard
    --(Table1[Item Desc.]="*PDB*")
    --(ISERROR(SEARCH("PDB",Table1[Item Desc.]))=FALSE)
    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
    LVL 1

    Author Closing Comment

    by:Lawrence Salvucci
    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    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.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now