+ Reply to Thread
Results 1 to 7 of 7

SUMIFS with multiple AND and OR criteria. How?

  1. #1
    Registered User
    Join Date
    07-16-2014
    Location
    UK
    MS-Off Ver
    2016
    Posts
    90

    Question SUMIFS with multiple AND and OR criteria. How?

    I would like to create a SUMIFS formula with the following criteria:
    Criteria A AND Criteria B AND Criteria C AND Criteria D OR Criteria E

    The sum range is A2:A10000.
    E1 is a header row. The header is "TIME".
    Criteria D is the target cell of the range E2:E10000 is empty.
    Criteria E is the target cell of the range E2:E10000 is greater than cell G2 (9:00 AM).

    Currently what I think I could do is:
    =SUMIFS(Criteria A AND Criteria B AND Criteria C AND Criteria D)+SUMIFS(Criteria A AND Criteria B AND Criteria C AND Criteria E)

    There is a lot of repetition (bold part). I wonder if there is any way to simplify it.
    Thank you.
    Last edited by mastertonn; 11-06-2018 at 11:21 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: SUMIFS with multiple AND and OR criteria. How?

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: SUMIFS with multiple AND and OR criteria. How?

    No workbook needed to answer that one

    try

    =SUM(SUMIFS(A2:A10000, range A, criteria A, range B, criteria B, range C, criteria C, E2:E10000, {"=", ">=09:00:00"}))

  4. #4
    Registered User
    Join Date
    07-16-2014
    Location
    UK
    MS-Off Ver
    2016
    Posts
    90

    Re: SUMIFS with multiple AND and OR criteria. How?

    Thank you. Another issue. I cannot use any formula or reference in the array, can I?

    For example, none of them works:
    Please Login or Register  to view this content.
    Quote Originally Posted by jason.b75 View Post
    =SUM(SUMIFS(A2:A10000, range A, criteria A, range B, criteria B, range C, criteria C, E2:E10000, {"=", ">=09:00:00"}))
    Last edited by mastertonn; 11-06-2018 at 08:06 AM.

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: SUMIFS with multiple AND and OR criteria. How?

    Not tried this method, but no reason it shouldn't work

    =SUM(SUMIFS(A2:A10000, range A, criteria A, range B, criteria B, range C, criteria C, E2:E10000,CHOOSE({1,2},"=",">="&MOD(NOW(),1))))

  6. #6
    Registered User
    Join Date
    07-16-2014
    Location
    UK
    MS-Off Ver
    2016
    Posts
    90

    Re: SUMIFS with multiple AND and OR criteria. How?

    Thank you jason.b75, but it doesn't work. It returns 0.

  7. #7
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: SUMIFS with multiple AND and OR criteria. How?

    Try replacing the initial SUM with SUMPRODUCT in the formula from post #5.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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