+ Reply to Thread
Results 1 to 2 of 2

SUMPRODUCT help

  1. #1
    Registered User
    Join Date
    08-27-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    76

    SUMPRODUCT help

    I have a spreadsheet that tabulates test results for a given month on a day-by-day basis. It was written using array formulas involving nested IF functions, and I am trying to rewrite the formulas using SUMPRODUCT.

    The challenge I am finding is in matching partial cell contents. The error codes in my raw data are the same every time, but the error message includes the value that was out of spec, so the text of the error messages is almost never exactly the same twice. I need to count how many of each error occurred on each day of the month.

    The array formula that is currently accomplishing this task is:

    {=SUM(IF(daterange=A1,IF(ISERR(SEARCH(B1,resultsrange)),0,1),0),0)}

    Is there a way to do this with SUMPRODUCT?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,700

    Re: SUMPRODUCT help

    You can do it with SUMPRODUCT but it's preferable to use COUNTIFS with a wildcard in Excel 2007 probably, try

    =COUNTIFS(daterange,A1,resultsrange,"*"&B1&"*")

    edit: SUMPRODUCT version would be something like this

    =SUMPRODUCT((daterange=A1)*ISNUMBER(SEARCH(B1,resultsrange)))
    Last edited by daddylonglegs; 03-05-2012 at 12:36 PM.
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1