+ Reply to Thread
Results 1 to 4 of 4

SUMIFS with OR conditions

  1. #1
    Forum Contributor
    Join Date
    10-05-2012
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    110

    SUMIFS with OR conditions

    I have a spreadsheet that looks at usage of part numbers that are interchangeable and combines them into a single usage total.
    The formula I am currently using is:

    =SUMIFS(Usage!$D:$D,Usage!$L:$L,$B$1,Usage!$B:$B,A140)*-1+SUMIFS(Usage!$D:$D,Usage!$L:$L,$B$1,Usage!$B:$B,B140)*1+SUMIFS(Usage!$D:$D,Usage!$L:$L,$B$1,Usage!$B:$B,C140)*-1

    My goal is to try and reduce it to something like

    =SUMIFS(Usage!$D:$D,Usage!$L:$L,$B$1,Usage!$B:$B,A140 OR B140 OR C140)*-1 (which I know doesn’t work.)

    The only solution I have found is to enter the actual values into the formula instead of the cell reference.

    =SUMIFS(Usage!$D:$D,Usage!$L:$L,$B$1,Usage!$B:$B,{"3469","114328","111484"})*-1

    The problem is that I have 1576 lines and to enter in the values of all those cells is more work than I am willing to do, I am attempting to reduce the calculation time of the spreadsheet. Any help would be appreciated.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: SUMIFS with OR conditions

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


    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    12-22-2010
    Location
    Rio, Brazil
    MS-Off Ver
    Excel 2010, 2016
    Posts
    209

    Re: SUMIFS with OR conditions

    Maybe...

    =-SUMPRODUCT(SUMIFS(Usage!$D:$D,Usage!$L:$L,$B$1,Usage!$B:$B,A140:C140))
    Marcelo Branco

  4. #4
    Forum Contributor
    Join Date
    10-05-2012
    Location
    Washington
    MS-Off Ver
    Excel 2013
    Posts
    110

    Re: SUMIFS with OR conditions

    Thank you both for the quick response. Both Formulas seem to be working as I need them to. I was wondering if either of you could explain why using the SUMPRODUCT produces what I am looking for?

+ 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. SumIfs in VBA with two conditions for one range
    By Ivkosky in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2013, 10:04 AM
  2. [SOLVED] Sumifs or Sumproduct With Multiple Conditions Help Please!
    By geepee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-01-2013, 09:27 AM
  3. Multiple conditions - SumProduct, SumIfs, CountIfs - Which do I need?
    By Carcophan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-08-2013, 01:43 PM
  4. sumifs multiple conditions stuck
    By kieranbop in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-31-2011, 07:13 AM
  5. Replies: 14
    Last Post: 01-11-2010, 01:27 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