1. 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.

2. I don't see any items labeled D, and I don't see Contract 2.

3. [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. =SUM(B5,D5:F5) should do what you asked.

5. [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. 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. [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
•