+ Reply to Thread
Results 1 to 10 of 10

SUMIFs With Multiple Not Equal To Conditions In a Single Column

  1. #1
    Registered User
    Join Date
    11-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    SUMIFs With Multiple Not Equal To Conditions In a Single Column

    All,

    I need a SUMIFs formula that will use multiple <> (Not Equal To) conditions in a single column. The formula should have the following conditions combined into one formula. Attached is the xl file for review.

    Condition1: SUMIF Column C is <>C,D,S
    Condition2: SUMIF Column D = N
    Condition3: SUMIF Column E = N
    Sum Answer: 429

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: SUMIFs With Multiple Not Equal To Conditions In a Single Column

    Try this...

    =SUMPRODUCT(--ISNA(MATCH(C10:C26,{"C","D","S"},0)),--(D10:D26="N"),--(E10:E26="N"),B10:B26)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    08-16-2012
    Location
    Sydney
    MS-Off Ver
    Excel 2019
    Posts
    209

    Re: SUMIFs With Multiple Not Equal To Conditions In a Single Column

    Hi,

    or you can use this simple formula of SUMIFS

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


    Cheers
    Albert



    Please don't forget to thank those who helped by clicking on Add Reputation * and please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

  4. #4
    Registered User
    Join Date
    11-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: SUMIFs With Multiple Not Equal To Conditions In a Single Column

    I like that version. Is it possible to consolidate the last 3 conditions in the SumIf to something like this: C9:C26,{"<>C,D,S"} if so how do you write the formula? I've seen it used before not sure were the <> { } " " symbols go exactly.

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFs With Multiple Not Equal To Conditions In a Single Column

    Quote Originally Posted by 5150 View Post
    Is it possible to consolidate the last 3 conditions in the SumIf to something like this: C9:C26,{"<>C,D,S"}
    No.

    Because that syntax is processed like an OR
    It basically creates 3 sumifs formulas, 1 for <>C, 1 for <>D, 1 for <>S
    Then sums the results of each.

    How many possible values are there for column C?
    If it's not many, you could basically reverse the logic
    Instead of NOT = C D and S
    Do IS = A B F or G

    =SUM(SUMIFS(B9:B26,D9:D26,"N",E9:E26,"N",C9:C26,{"A","B","F","G"}))

  6. #6
    Registered User
    Join Date
    11-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: SUMIFs With Multiple Not Equal To Conditions In a Single Column

    Yea there's a lot of values otherwise I would reverse the logic like you suggested. I normally use your version of the syntax but since I have so many values, there's no way of efficiently doing it that way. That's why I wanted to try using a <>{"C,D,S"} consolidated type version if it was possible. Is there any other method available on performing this task, so that I can have and learn various options?

    Thanks to everyone on this post that assisted me on this, I really appreciate your support.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFs With Multiple Not Equal To Conditions In a Single Column

    Quote Originally Posted by 5150 View Post
    Is there any other method available on performing this task, so that I can have and learn various options?
    Did you try Tony's formula?

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFs With Multiple Not Equal To Conditions In a Single Column

    Perhaps

    =SUMIFS(B9:B26,D9:D26,"N",E9:E26,"N")-SUM(SUMIFS(B9:B26,D9:D26,"N",E9:E26,"N",C9:C26,{"C","D","S"))

  9. #9
    Registered User
    Join Date
    11-10-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: SUMIFs With Multiple Not Equal To Conditions In a Single Column

    Perfect. BTW, What's the correct syntax for excluding or including blanks? Is the syntax below the right way to write each one?

    Exclude: "<>" & ""
    Include: = & ""

  10. #10
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUMIFs With Multiple Not Equal To Conditions In a Single Column

    Exclude: "<>"
    INclude: ""

+ 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 multiple conditions
    By ksmith21 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 02-16-2015, 06:12 AM
  2. [SOLVED] SUMIFS w/ multiple criteria in a single column (using references to cells, not values)
    By akamenov88 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2015, 06:16 PM
  3. [SOLVED] SumIfs Formula With Multiple Not Equal To Criteria
    By zmster2033 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-07-2014, 05:08 PM
  4. Sum Mulitple Column based on the multiple Conditions using sumifs function
    By JEETKAMALARORA in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 12-20-2012, 03:24 AM
  5. Replies: 14
    Last Post: 01-11-2010, 01: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