+ Reply to Thread
Results 1 to 2 of 2

SUMPRODUCT Criteria to Not Include Values within Column

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2010
    Posts
    228

    SUMPRODUCT Criteria to Not Include Values within Column

    Hello Everyone,

    This is a half formula/half vba question... Attached is an example of my issue. I'm looking at the formula in Sheet3, cell F5. You'll see that the criteria "--(Sheet2!I:I<>Sheet1!O:O)" does not seem to be working. I need the formula to not include any values from Sheet2!E:E, where the corresponding value in column I does not equal any value in Sheet1!O:O. Also, these values can change by user so its not as simple as just typing them in to the formula as an array...

    That VBA part of this is that it's in a macro, so if there is any way to make this easier using code instead of a simple formula, please let me know.

    Thanks for your help!

    Book5.xlsx

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

    Re: SUMPRODUCT Criteria to Not Include Values within Column

    Try something like this:

    =SUMPRODUCT(--(Sheet2!A:A="JAN"),--(Sheet2!R:R=E5),--ISNA(MATCH(Sheet2!I:I,Sheet1!O$1:O$100,0)),Sheet2!E:E)

    .....but probably better not to use whole column refs - that will make the formula slow
    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)

Similar Threads

  1. Replies: 1
    Last Post: 12-27-2013, 03:56 PM
  2. Replies: 6
    Last Post: 08-04-2013, 11:53 AM
  3. Replies: 2
    Last Post: 07-20-2010, 01:25 PM
  4. How to make chart include only values from every 5th column?
    By salutaurs in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-30-2008, 05:41 AM
  5. Modify Sumproduct to include helper column
    By JDarling in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 12-17-2007, 06:03 PM

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