+ Reply to Thread
Results 1 to 7 of 7

SUMPRODUCT Error

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    ohio,usa
    MS-Off Ver
    Excel 2003
    Posts
    7

    SUMPRODUCT Error

    I got 3 columns of data for ex
    col f6:f19 is defect severity can be 1 or 2 or 3
    col c6:c19 is defect status "Open" or "Closed"or "Pending"
    col d6:d19 is age of defect . the data in column D is derived by a formula using today()-(g6:g19) . some data in column is hardcoded and some is not

    I need to create a matrix to find out total defects status =Open, Sev = 1 or 2 or 3 and age = <10 days,<20 days,>30 days.

    The problem i am facing is there is no data in some cells because status=closed.
    I used this formula and this worked for only one or 2 cells where there is uniform data.

    =SUMPRODUCT(F6:F19=3,C6:C19="Open",D6:D19<=10)

    I get either 0 or #VALUE error . 0 is not correct and it should give me 4.

    is there a way out if the data in underlying cells is not uniformly formatted?


    Thanks
    Last edited by babuda; 05-04-2009 at 02:47 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,627

    Re: SUMPRODUCT Error

    Add 1*

    =SUMPRODUCT(1*(F6:F19=3)),1*(C6:C19="Open"),1*(D6:D19<=10))

    or --

    =SUMPRODUCT(--(F6:F19=3)),--(C6:C19="Open"),--(D6:D19<=10))
    Last edited by zbor; 04-29-2009 at 04:33 PM.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: SUMPRODUCT Error

    Or =SUMPRODUCT((F6:F19=3) * (C6:C19="Open") * (D6:D19<=10))
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    03-05-2009
    Location
    ohio,usa
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: SUMPRODUCT Error

    Thank you friends but it did not work out,so I am uploading the actual data file!

    Thanks
    Attached Files Attached Files

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: SUMPRODUCT Error

    Your Severity column needs to be cleaned up. There are "2" and "2 " (with a space in there).

    Use a dropbox validation list with your options 1,2,3,4 for severity so people won't type junk into that column. Once the corruption is cleaned, the SUMPRODUCT works as designed.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Registered User
    Join Date
    03-05-2009
    Location
    ohio,usa
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: SUMPRODUCT Error

    Thank you very much, but still I got to solve this problem which I think I cannot! The data is copied from ClearQuest and too many people handle this file for which I got no control.

    Babuda

  7. #7
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: SUMPRODUCT Error

    Sure there's a solution. Fix it yourself, same as I did in the version I uploaded.

+ 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