+ Reply to Thread
Results 1 to 9 of 9

Need a sumifs with an "or" in one of the criteria...??

  1. #1
    Registered User
    Join Date
    03-15-2014
    Location
    Nashville, TN
    MS-Off Ver
    365
    Posts
    33

    Need a sumifs with an "or" in one of the criteria...??

    Guys; This seems like it should be simple but I'm stumped nevertheless.

    I attached the data.

    Note the red cell near the top left. What I have done is created a sumifs formula to basically say "sum the total in column J if the name in column B is "mrobledo", if the code in column T includes "CYO" and if the value in column P is blank."

    All I need is for this formula to be modified so that it says:

    "sum the total in column J if the name in column B is "mrobledo", if the code in column T includes "CYO" and if the value in column P is blank or includes the word "New."

    That's it. The formula is right....all I need is for the criteria in column P to sum if it is blank OR includes the word "New."

    Thanks for any help. I've been trying brackets and all kinds of logic, but can't make anything work. Thanks again.
    Attached Files Attached Files

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need a sumifs with an "or" in one of the criteria...??

    This should do it if I understand you correctly:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

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

    Re: Need a sumifs with an "or" in one of the criteria...??

    Try this...

    =SUM(SUMIFS(J:J,T:T,"CYO*",B:B,"mrobledo",P:P,{"","New"}))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need a sumifs with an "or" in one of the criteria...??

    This could work for you too: -----nope!! Doesn't

    Array Enter the following (Ctrl + Shift + Enter)

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by newdoverman; 05-17-2015 at 08:30 PM.

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    2,959

    Re: Need a sumifs with an "or" in one of the criteria...??

    An alternative way:
    Make use of filter and subtotal formula
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

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

    Re: Need a sumifs with an "or" in one of the criteria...??

    Quote Originally Posted by newdoverman View Post

    Array Enter the following (Ctrl + Shift + Enter)

    =SUMIFS(J:J,T:T,"CYO*",B:B,"mrobledo",P:P,{"","New"})
    That doesn't work for me.

    ..........B............P..........J..........T......
    1..mrobledo....New.......10......CYO xx
    2..mrobledo.................20......CYO xx

    P2 = an empty cell

    Array entered:

    =SUMIFS(J:J,T:T,"CYO*",B:B,"mrobledo",P:P,{"","New"})

    Returns 20

    The correct result should be 30.

    =SUM(SUMIFS(J:J,T:T,"CYO*",B:B,"mrobledo",P:P,{"","New"}))

    Correctly returns 30.

  7. #7
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need a sumifs with an "or" in one of the criteria...??

    @ Tony thanks, just verified that myself.

    This, I have tested and it, in my sleepy haze, seems to work fine

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

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

    Re: Need a sumifs with an "or" in one of the criteria...??

    Yeah, that'll work...

    But, the SUM/SUMIFS version is much more efficient!

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Need a sumifs with an "or" in one of the criteria...??

    Just giving alternatives.

+ 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 criteria ">" a cell
    By pickslides in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2015, 09:40 PM
  2. by using "sumifs" excel doesn't recognize the value of a cel as criteria
    By entonii in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-12-2014, 09:28 AM
  3. SUMIFS with "AND/OR" (Ignoring Blank Criteria)
    By SCLisi in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-26-2013, 06:55 PM
  4. can a "MINIF" formula be built, equivalent to "SUMIFS"?
    By jrtaylor in forum Excel General
    Replies: 4
    Last Post: 10-22-2011, 12:44 PM
  5. Replies: 0
    Last Post: 07-09-2009, 04:07 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