Solved

ARRAY IN SUMIFS WITH "<>" CRITERIA

Posted on 2014-04-29
4
1,142 Views
Last Modified: 2014-04-30
I have a SUMIFS formula where I would to like to have one of the criteria be an array of values that a particular range cannot be equal to.  I undertsnad how to do this when I only want to include an array of values, but I am having trouble doing the opposite.

=+SUMIFS(data!$F:$F,data!$C:$C,$A35,data!$D:$D,$D35,data!$G:$G,$B35,data!$I:$I,"<>{0068999,1000000,3300305}",data!$B:$B,"<="""&MONTH(F$27))

**Please note the values in the array are text, not numbers.

I can make it work with a SUMPRODUCT formula, but I wanted to see if this was possible as well.

Thanks for any help!
0
Comment
Question by:mak345
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 40029438
Unfortunately with SUMIFS you can't use the grouping method for "AND" checks (i.e. check that column is not equal to criteria1 AND column is not equal to criteria2, etc.... it can be used for checking "OR" checks.

You will need 3 separate SUMIFS added together (one for each separate column I check.  

Also, SUMIFS will convert Text string numbers to numbers and will look for those in column I.  So it will look for the number 68999 and not find it amongst numbers/text like 0006899

Sumproduct would be the better choice for that situation.  You will just need to try to limit the ranges or use Dynamic Named Ranges.
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 40029447
How about combining two SUMIFS?

One which includes everything, ie no criteria for Data!$I:$I, and one which includes only those items that you want to exclude. Then one less the other will give the result you want.

Thanks
Rob H
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 40030803
I don't think you need 3 separate SUMIFS, you can simply use 3 separate conditions in a single SUMIFS, e.g.

=SUMIFS(data!$F:$F,data!$C:$C,$A35,data!$D:$D,$D35,data!$G:$G,$B35,data!$I:$I,"<>0068999",data!$I:$I,"<>1000000",data!$I:$I,"<>3300305",data!$B:$B,"<="&MONTH(F$27))

If you want to exclude a longer list of values then Rob's method may suit better

regards, barry
0
 

Author Closing Comment

by:mak345
ID: 40032441
This turned out to be the best option.  When I attempted the SUMIFS formula with multiple "<>" criteria it ended up including all values.  SUMPRODUCT works, but I prefer the use of SUMIFS.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Calculating Sales Tax 13 64
please help modify and explain this VBA 13 60
NEED TO LOOK FOR EXACT NUMBER 14 42
Automate an Oracle update in Excel 7 63
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question