+ Reply to Thread
Results 1 to 10 of 10

Sumifs function not working

  1. #1
    Forum Contributor
    Join Date
    07-20-2009
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    203

    Sumifs function not working

    Hi,

    I don't know why sumifs is not working with this formula:

    =SUMIFS(B3:B7,E3:E7,O5,E3:E7,O4)

    Cell O4 = M
    Cell O5 - C

    Cells B3:B7 = 35,25,25

    E3:E7 = this is where i put "M" or "C"

    it's not working, is still get 0 instead of 85. is there any one can point out the problem???

    Thanks!

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

    Re: Sumifs function not working

    SUMIFIS (and countifs) does an AND criteria.
    It's looking for any call that meets BOTH criterias.
    It's not possible for a cell to = both M and C

    To do OR,

    Try this

    =SUMPRODUCT(SUMIF(E3:E7,O4:O5,B3:B7))

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

    Re: Sumifs function not working

    The range E3:E7 can not = both M and C at the same time.

    Do you mean: if E3:E7 = M OR C ?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Contributor
    Join Date
    07-20-2009
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    203

    Re: Sumifs function not working

    it should be M and C. and why not can't have both criteria?

  5. #5
    Forum Contributor
    Join Date
    07-20-2009
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    203

    Re: Sumifs function not working

    Jonmo your formula is working fine. but if it is ok, I need some explanations for better understanding

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

    Re: Sumifs function not working

    a SINGLE cell cannot be both M and C 'at the same time'

    That's what sumifs is looking for.
    It's evaluating each cell individually one at a time and testing if it meets BOTH criteria.
    It's impossible for a single cell to meet both criteria.

  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 function not working

    The sumproduct formula is basically creating 2 seperate SUMIF formulas, one for O4 and one for O5.
    Then it sums the result of those 2 sumif formulas.

  8. #8
    Forum Contributor
    Join Date
    07-20-2009
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    203

    Re: Sumifs function not working

    oooohhh. I see, so i can use the sumproduct and sumif not just for two criteria but 3 or more right? Thanks for explanation. I'll add you a rep

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

    Re: Sumifs function not working

    Here's another example of using an OR condition:

    =SUMPRODUCT(--ISNUMBER(MATCH(E3:E7,O4:O5,0)),B3:B7)

  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 function not working

    That's right.

    Glad to help, thanks for the feedback.

+ 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] SUMIFS - Not Working as I would like
    By Chris.Williams81 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-08-2013, 08:55 AM
  2. sumifs not working
    By amartino44 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-07-2013, 08:31 PM
  3. [SOLVED] sumifs not working quite right
    By benoj2005 in forum Excel General
    Replies: 13
    Last Post: 09-19-2012, 10:41 AM
  4. Excel 2007 : SUMIFS Formula Not Working
    By milliemoo in forum Excel General
    Replies: 7
    Last Post: 03-06-2012, 12:16 PM
  5. sumifs with dates not working
    By paualou76 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-30-2011, 08:33 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