+ Reply to Thread
Results 1 to 2 of 2

SUMIF (Or SUMIFS) To Sum Values NOT equal to a RANGE of values

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    Cali
    MS-Off Ver
    Excel 365
    Posts
    62

    SUMIF (Or SUMIFS) To Sum Values NOT equal to a RANGE of values

    So I am trying to draft a formula that looks at a range of transactions (Col A & B) and sums all values (Cal B) where the description (Cal A) is NOT equal to a side set of names that are located in another range. I am able to do this where the not equal to is a single cell or value, but when I change it to a range it seems to add MORE than the total sum of all lines. Seem screen cap below:
    Untitled.jpg

    If I want to sum all the values that ARE EQUAL to the side range, I used this: =SUMPRODUCT(SUMIF(A4:A12,D6:D7,B4:B12)) in Cell D5 and got 25, which is correct for all values tagged cats + all values tagged dogs.

    If I want to sum all the values that are NOT EQUAL to just "cats" (Cell D6), I used this: =SUMIF(A4:A12,"<>"&D6,B4:B12) in Cell D11 and got 44, which is also correct for all values that are NOT tagged cats.

    However, when I try to combine the two and sum all values that are NOT EQUAL to "cats" or NOT EQUAL to "dogs", I used this: =SUMPRODUCT(SUMIF(A4:A12,"<>"&D6:D7,B4:B12)). The result I'm looking for should be 30 (total sum of 55 less 11 for lines tagged "cats" and 14 for lines tagged "dogs"), however I am getting 85, which is somehow more than the total sum of the list.

    Is this possible with these formulas and I have a syntax error somewhere, or do I have to do a series of SUMIF(range, "cats",sumrange) + SUMIF(range, "dogs", sumrange)? For this example that is no issues, but I'm looking to have a LONG list of NOT EQUAL to values and just referencing that range of excluded values would be much cleaner.

    Thoughts?

    Thanks,

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: SUMIF (Or SUMIFS) To Sum Values NOT equal to a RANGE of values

    One way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

+ 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. Sumifs that does not equal a range of values
    By whiZZfiZZ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-09-2016, 01:03 PM
  2. sumif or sumifs values less than corresponding values in the adjacent column
    By harikaraj in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-24-2015, 03:21 PM
  3. Sum cells in a range based between two equal cell values in another range
    By sshone1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2013, 08:12 AM
  4. COUNTIFS - Count all values in a range that equal any value in another range.
    By HeebieGeebie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 09:05 AM
  5. [SOLVED] Sum values in a range that equal B OR C
    By fredrs05 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-12-2013, 08:20 AM
  6. Replies: 3
    Last Post: 09-26-2012, 09:48 AM
  7. sumif(range,"<30",sum range) not summing values that equal 0
    By rantarctica in forum Excel General
    Replies: 3
    Last Post: 01-06-2009, 07:27 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