+ Reply to Thread
Results 1 to 7 of 7

Sumifs that does not equal a range of values

  1. #1
    Registered User
    Join Date
    03-20-2004
    Location
    Australia
    Posts
    21

    Sumifs that does not equal a range of values

    Hi All

    I was hoping if (excuse the pun :p ) someone could please help with a sumifs formula.

    =SUMIFS('DATA'!D:D,'DATA'!O:O,"<>"&{1,3,6,12,24},'DATA'!P:P,$A$2,'DATA'!D:D,"<="&$D$2,'DATA'!D:D,">"&$C$2)

    Its just the <>"&{1,3,6,12,24} part, i think everything else works fine.

    I have other formula's that pick up the required figures that match 1 in Column O on the data sheet, along with 3 6 12 and so on.

    What I am trying to do is pick up the "left overs" were someone has entered the wrong number in the data sheet in Column O (should only be 1,3,6,12,24)

    So I thought i could say, that if the value does not equal anything in the {} brackets, I want to add up those.

    So for example, if someone has entered a 2 or 7 or 25 in DATA Column 0, then I want to add up the values in Data Column D (subject to the other criteria)

    Any help would be greatly appreciated

    Thank you

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Sumifs that does not equal a range of values

    If you just do a straightforward SUM of the all of the data and subtract the results of the original "=" formula that will leave you with the left overs.

    e.g.

    =SUM(DATA!D:D) - SUMIFS(DATA!D:D,DATA!O:O...)
    Last edited by Special-K; 06-08-2016 at 12:33 PM.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Sumifs that does not equal a range of values

    Whi would you please upload you file with dummy data?
    Teach me Excel VBA

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

    Re: Sumifs that does not equal a range of values

    Try it like this...

    =SUMPRODUCT(--ISNA(MATCH('DATA'!O2:O100,{1,3,6,12,24},0)),--('DATA'!P0:P100=$A$2),--('DATA'!D2:D100<=$D$2),--('DATA'!D2:D100>$C$2),'DATA'!D2:D100)

    You should avoid using entire columns as references with the SUMPRODUCT function. Use smaller specific ranges.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    03-20-2004
    Location
    Australia
    Posts
    21

    Re: Sumifs that does not equal a range of values

    Thank you so much guys for responding so quickly.

    Special-K, yes could have done it the "cheats way", however would prefer not to do that in case the original formulas contain errors etc.

    Tony, thank you so much, that worked perfectly

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

    Re: Sumifs that does not equal a range of values

    You're welcome. Thanks for the feedback!

  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 that does not equal a range of values

    I wouldn't call Special-K's suggestion a 'Cheats way'
    It's perfectly logical.
    And actually more efficient, because you've ALREADY done the work of testing column O for the values of 1 3 6 12 and 24.
    No need to Do that again..

    If you ALREADY have the SUM of 1 3 6 12 and 24
    Logically, the TOTAL sum of ALL vlaues Minus the sum already achieved = desired sum of NOT 1 3 6 12 24

    Although you'd have to include all the other criteria as well in the overall sum.

    So I assume then this is your formula that sums the ones that ARE = 1 3 6 12 and 24
    =SUMIFS('DATA'!D:D,'DATA'!O:O,{1,3,6,12,24},'DATA'!P:P,$A$2,'DATA'!D:D,"<="&$D$2,'DATA'!D:D,">"&$C$2)
    Say that formula is in D2 for example

    Then to get sum of the ones that DO NOT = 1 3 6 12 and 24,

    =SUMIFS('DATA'!D:D,'DATA'!P:P,$A$2,'DATA'!D:D,"<="&$D$2,'DATA'!D:D,">"&$C$2)-D2

+ 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] Set Sumifs Criteria Range to equal year
    By HCLax in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-10-2014, 09:53 AM
  2. SumIfs containing a greater than or equal to And less than or equal to
    By teton88 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-15-2014, 07:47 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. SUMIFS with multiple values for one criteria range
    By Harsha Haridas in forum Excel General
    Replies: 9
    Last Post: 01-27-2012, 06:08 AM

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