+ Reply to Thread
Results 1 to 9 of 9

SUMIFS multiple OR AND criteria

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    SUMIFS multiple OR AND criteria

    I have half of my SUMIF working (Column E - simple SUMIFS equal two account codes), but that I am somehow missing how to sum all the remaining account codes (I've tried using a does not equal "<>" but its not working correctly) shown in Column N and adding them up to place in Column F? Excel example sheet attached for reference.

    Any help is greatly appreciated as I know its something easy I am overlooking!
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: SUMIFS multiple OR AND criteria

    Perhaps try a Pivot Table?

  3. #3
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: SUMIFS multiple OR AND criteria

    Moving data away from Pivot tables as we are dealing with mass amounts of data (thousands of lines to look up against each month)....I just included a tiny little example.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2504
    Posts
    13,640

    Re: SUMIFS multiple OR AND criteria

    IF PT is an option, then with large sheets PowerPivot would be a possibility or Power Query ?

  5. #5
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIFS multiple OR AND criteria

    Try these:

    E7 =SUM(SUMIFS(M$7:M$25,L$7:L$25,D7,N$7:N$25,{"154500","649000"}))
    F7 =SUMIFS($M$7:$M$25,$L$7:$L$25,D7,$N$7:$N$25,"<>154500",$N$7:$N$25,"<>649000")

    You can also use this in F7:
    =SUMIF(L$7:L$25,D7,M$7:M$25)-E7

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: SUMIFS multiple OR AND criteria

    pivottables would be better as less formulas and probably quicker
    E7 you can lose the " " as the account number is a number
    =SUMIFS($M$7:$M$25,$L$7:$L$25,$D7,$N$7:$N$25,154500)+SUMIFS($M$7:$M$25,$L$7:$L$25,$D7,$N$7:$N$25,649000)

    but f6 easily
    =SUMIFS($M$7:$M$25,$L$7:$L$25,$D7)-E7

  7. #7
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    2,008

    Re: SUMIFS multiple OR AND criteria

    E7=IF($D7<>"",SUMPRODUCT(SUMIFS($M$7:$M$25,$L$7:$L$25,$D7,$N$7:$N$25,$N$13:$N$14)),"") copy down


    F7=IF($D7<>"",SUMPRODUCT(SUMIFS($M$7:$M$25,$L$7:$L$25,$D7,$N$7:$N$25,"<>"&$N$13:$N$14)),"") copy down

  8. #8
    Registered User
    Join Date
    08-26-2013
    Location
    Kansas
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: SUMIFS multiple OR AND criteria

    Thank you ALL these work! Yes, I know pivots work in many cases, but the mass amount of data across many dynamic inputs just wasn't the way to handle all this for long term repetitive processes.

  9. #9
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: SUMIFS multiple OR AND criteria

    Glad we could help. Thanks for the rep!

+ 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: 0
    Last Post: 08-22-2017, 03:49 PM
  2. Replies: 3
    Last Post: 02-02-2017, 04:32 AM
  3. [SOLVED] SUMIFS with multiple criteria WITH specified dynamic range criteria
    By dluhut in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-20-2017, 11:03 AM
  4. Sumifs with multiple criteria and criteria in same column
    By Kathryn012 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2017, 07:48 AM
  5. How to sum SUMIFS - multiple criteria for one criteria range???
    By trstew in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-06-2016, 02:37 PM
  6. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  7. Replies: 1
    Last Post: 05-16-2011, 05:00 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