+ Reply to Thread
Results 1 to 2 of 2

Adding a second exclusion to sumproduct formula

  1. #1
    Registered User
    Join Date
    06-05-2015
    Location
    UK
    MS-Off Ver
    2013
    Posts
    35

    Adding a second exclusion to sumproduct formula

    Hi,

    I have a formula that excludes one category from a sumproduct and I am trying to work out how to add a second.

    The formula is =SUMPRODUCT(--($C$156:$C$1156<>"Cats"),I$156:I$1156) but I would also like to exclude "Dogs" - does anyone have any ideas?

    Thanks

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

    Re: Adding a second exclusion to sumproduct formula

    Maybe:

    =SUMPRODUCT(--($C$156:$C$1156<>"Cats"),--($C$156:$C$1156<>"Dogs"),I$156:I$1156)
    _________________
    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!)

+ 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. [SOLVED] SUMPRODUCT Exclusion Problem
    By TheGrinch1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2017, 05:11 AM
  2. Rank formula based on a exclusion criteria.
    By Jabba69 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-08-2014, 08:39 AM
  3. Exclusion of weekdays and holidays from a formula
    By jcroque89 in forum Excel General
    Replies: 1
    Last Post: 06-19-2014, 04:28 PM
  4. [SOLVED] Formula using COUNTIFS with the exclusion of certain information
    By Johfra in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-22-2014, 02:25 PM
  5. [SOLVED] Adding Criteria to a SUMPRODUCT Formula
    By quibilty in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-30-2013, 05:27 PM
  6. Countif exclusion formula help
    By scsuflyboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2012, 10:47 PM
  7. SUMPRODUCT formula not adding correctly
    By ExcelNewby in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 02-10-2008, 08:41 PM

Tags for this Thread

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