+ Reply to Thread
Results 1 to 5 of 5

3rd variable in SUMPRODUCT formula

  1. #1
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    375

    3rd variable in SUMPRODUCT formula

    Afternoon all,

    I trying to use SUMPRODUCT to return a sum of hours in $K1:$K1000 based on two other sets of criteria. The formula is working fine with the first two sets of criteria, in this case returning the number "8". After trying to add the third criteria the formula is still returning "8" when it shoud be returning 374. Any ideas??

    Please Login or Register  to view this content.
    Last edited by scaffdog845; 07-13-2010 at 02:56 PM.
    Click here to read the Forum Rules
    Whatever it is in life you decide to go after, go after with great ferocity.

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

    Re: 3rd variable in SUMPRODUCT formula

    That formula you posted doesn't sum anything, it's a count of rows that meet the criteria, if you want to sum column K change to this

    =SUMPRODUCT(('ZGWOS '!$H$1:$H$1000="BREAK IN - SCHEDULE")*('ZGWOS '!$N$1:$N$1000={"JJW BM","JJW CAD","JJW EL","JJW EQ","JJW IW","JJW LAB","JJW PF"})*('ZGWOS '!$K$1:$K$1000))
    Audere est facere

  3. #3
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    375

    Re: 3rd variable in SUMPRODUCT formula

    Thanks DLL

    When I used your replacement suggestion I received a #VALUE! error. I attempted another modification and received an incorrect value. Could you check out the attachment and see what looks wrong?

    The JJ White numbers sheet is where I would like the formula to be in C2:C16. These cells currently have the correct results manually entered, and the ZQWOS sheet is currently filter to show the criteria and values that generate the results in row 2:2 on JJ White numbers.

    Many thanks!!!....
    Attached Files Attached Files

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: 3rd variable in SUMPRODUCT formula

    You get the #VALUE error because row 1 contains text strings.. and multiplying arrays causes errors when including a summing category.....

    Try:

    Please Login or Register  to view this content.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  5. #5
    Valued Forum Contributor scaffdog845's Avatar
    Join Date
    02-01-2008
    Location
    Aston, PA. USA.
    MS-Off Ver
    Microsoft 365
    Posts
    375

    Re: 3rd variable in SUMPRODUCT formula

    Quote Originally Posted by NBVC View Post
    You get the #VALUE error because row 1 contains text strings.. and multiplying arrays causes errors when including a summing category.....
    Such a stupid thing to overlook. Thanks for spotting it! Problem solved....

+ 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