Results 1 to 7 of 7

Thread: Sumproduct (?)

  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Posts
    1,418
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Please see attached. What I would like to do is sum the items labeled D for all of the contracts, except for Contract No. 2. I would like a formula in the form of sumif or sumproduct, whichever is applicable. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    I don't see any items labeled D, and I don't see Contract 2.

  3. #3
    Bronze Lounger
    Join Date
    Jan 2001
    Posts
    1,418
    Thanks
    1
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='798412' date='16-Oct-2009 10:56']I don't see any items labeled D, and I don't see Contract 2.[/quote]

    OOPS!!! I meant sum all of the products labeled 4, excluding those under Contract B! Sorry!

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    =SUM(B5,D5:F5) should do what you asked.

  5. #5
    Bronze Lounger
    Join Date
    Jan 2001
    Posts
    1,418
    Thanks
    1
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='798424' date='16-Oct-2009 11:33']=SUM(B5,D5:F5) should do what you asked.[/quote]

    Thanks Hans. Is there a way to do it using the sumif or sumproduct functions? This is a very simplified example of a very large spreadsheet that has mucho data...

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    It would have helped if you had posted a worksheet that was just a little bit more representative of the real data. The one you attached lists each contract and each item only once so SUMPRODUCT or similar would be overkill.

    Try

    =SUMPRODUCT((A2:A6="Item 4")*(B1:F1<>"Contract B")*B2:F6)

  7. #7
    Bronze Lounger
    Join Date
    Jan 2001
    Posts
    1,418
    Thanks
    1
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='798428' date='16-Oct-2009 11:44']It would have helped if you had posted a worksheet that was just a little bit more representative of the real data. The one you attached lists each contract and each item only once so SUMPRODUCT or similar would be overkill.

    Try

    =SUMPRODUCT((A2:A6="Item 4")*(B1:F1<>"Contract B")*B2:F6)[/quote]

    Thanks Hans. I promise to be more clear in the future..

Posting Permissions

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