+ Reply to Thread
Results 1 to 15 of 15

Multiple CRITERIA in SUMIFS

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    3

    Multiple CRITERIA in SUMIFS

    Hi,

    Taking this example as base:
    http://www.alchemex.com/blog/excel-t...mifs-function/

    If I wanted to SUMIFS all the January and February of the East Coast, would it be possible just by adding something on criteria 1?

    Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Multiple CRITERIA in SUMIFS

    kriggs, welcome to the forum. You would add a 2nd criteria, by using a comma after "criteria1".

    Hope this helps.
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  3. #3
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Multiple CRITERIA in SUMIFS

    Perhaps use Sumproduct:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If solved kindly remember to mark Thread as solved.
    Click the small star icon at the bottom left of my post if this was useful.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Multiple CRITERIA in SUMIFS

    Hi,

    Rather than using the wizard for building a SUMIFS function one way:

    =SUMIFS(C4:C17,A4:A17,"January",B4:B17,"East Coast")+SUMIFS(C4:C17,A4:A17,"February",B4:B17,"East Coast")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Multiple CRITERIA in SUMIFS

    another way
    =SUM(SUMIFS(C4:C17,A4:A17,{"January","February"},B4:B17,"East Coast"))
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  6. #6
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Multiple CRITERIA in SUMIFS

    I assume that you are aware that Pivot Tables are very efficient at this type of work. Just checking.
    This array formula will also work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Multiple CRITERIA in SUMIFS

    Quote Originally Posted by Jacc View Post
    =SUM(IF((A4:A17="January")+(A4:A17="February")*(B4:B17="East Coast"),B4:C17))
    Note that you need some extra parentheses to guarantee the correct result, i.e.

    =SUM(IF(((A4:A17="January")+(A4:A17="February"))*(B4:B17="East Coast"),C4:C17))
    Audere est facere

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

    Re: Multiple CRITERIA in SUMIFS

    And just for the heck of it, here's another way to write that:

    =SUM(IF(A4:A17={"January","February"},IF(B4:B17="East Coast",C4:C17)))

    Array entered.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Registered User
    Join Date
    03-26-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple CRITERIA in SUMIFS

    Thanks everyone, kbkumar and Richard Buttrey, your options work but my main SUMIFS formula is already 150chars long, and I need it the last criteria to evaluate to 8 diferent words, so the cell would be with around 1200chars, something impractical.

    JosephP, BB1972, it worked, but only with static values, how could I evaluate the values to a cell, ex. leaving January and Fabruary in D1 and D2, and the criteria be {D1,D2}? This throws me an error.

    Jacc, daddylonglegs and Tony, I've tried alot but those aren't working, they never sum for me, it gives a !value ou 0

  10. #10
    Forum Contributor
    Join Date
    09-27-2012
    Location
    London, England
    MS-Off Ver
    2003, 2010
    Posts
    344

    Re: Multiple CRITERIA in SUMIFS

    Quote Originally Posted by kriggs View Post
    .... I need it the last criteria to evaluate to 8 diferent words, so the cell would be with around 1200chars, something impractical.
    Would you be able to list all the criterias?

    On the face of it, perhaps a VBA code would be easy it seems.

  11. #11
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Multiple CRITERIA in SUMIFS

    you can use sumproduct then
    =SUMPRODUCT((ISNUMBER(MATCH(A4:A17,D1:D15,0)))*(B4:B17="East Coast")*C4:C17)

  12. #12
    Registered User
    Join Date
    03-26-2013
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Multiple CRITERIA in SUMIFS

    Quote Originally Posted by kbkumar View Post
    Would you be able to list all the criterias?

    On the face of it, perhaps a VBA code would be easy it seems.
    For the time beeing this is the criterias, texts and formulas are in portuguese
    SoMASES = SUMIFS
    ; = ,

    =SOMASES('Movimentacao Estacas'!$G$1:$G$40;'Movimentacao Estacas'!$F$1:$F$40;C$2;'Movimentacao Estacas'!$E$1:$E$40;$A3;'Movimentacao Estacas'!$D$1:$D$40;Estoque!$A$1:$K$1)

    It's 4 criterias, just that one left for it to be functional.

    That's what I needed JoshepP, I'll try to implement the other criterias in it now.

    ---------------------
    JoshephP

    Managed to make it work, but it doens't accept a table collunm name as entry, ex.: "Table1[Region]", no problem tough, thanks!
    Last edited by kriggs; 03-26-2013 at 12:46 PM.

  13. #13
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Multiple CRITERIA in SUMIFS

    it will take a column name-how did you do it and what problem did you have?

  14. #14
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Multiple CRITERIA in SUMIFS

    Quote Originally Posted by kriggs View Post
    Thanks everyone, kbkumar and Richard Buttrey, your options work but my main SUMIFS formula is already 150chars long, and I need it the last criteria to evaluate to 8 diferent words, so the cell would be with around 1200chars, something impractical.
    Hi,

    In that case have you considered a simple autofilter on your data, filtering the columns as necessary and having an

    =SUBTOTAL(9,C4:C17)

    in say C2.

  15. #15
    Forum Contributor Grimace's Avatar
    Join Date
    05-04-2009
    Location
    Gold Coast, Australia
    MS-Off Ver
    Excel 2013 and Office 365 Plus
    Posts
    380

    Re: Multiple CRITERIA in SUMIFS

    With the range formula in the above options, use Ctrl+Alt+Enter when entering into the cell, this should fix your problem.
    Handy things to keep in mind:

    Click *, if my suggestion has helped you
    If your problem is solved, then please mark the thread as SOLVED

    Sharing is Caring .... spread the knowledge

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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