Solved

Add an Argument to this SUMIFS function

Posted on 2014-07-21
2
121 Views
Last Modified: 2014-07-21
Hi Experts:

How would I modify this SUMIFS Function to subtract fields in "HisDataSUM" in which the values in column C were equal to the values in column D?

SUMIFS(HisDataSum!$A:$A,HisDataSum!$B:$B,IF(D13="All","<>0",D13),HisDataSum!$C:$C,IF(D14="All","<>0",D14),HisDataSum!$E:$E,IF(D16="All","<>0",D16) - X,

Using all the same criteria for cells D13, D14, and D16 X needs to Sum the values in HisDataSum column A only in the instances where the values in column C = column D.

If there is an easier way to do this; such as forget about the subtraction and only sum if column C <> column D that will work as well!

Thanks in advance!
0
Comment
Question by:-Polak
2 Comments
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 40209671
In order to use SUMIFS (and whole column references), you would need to add a helper column which flags when column C is equal to column C.... for example =IF(C2=D2,"Match","Not Matched")

Then you can add that check in your original.

e.g.

SUMIFS(HisDataSum!$A:$A,HisDataSum!$B:$B,IF(D13="All","<>0",D13),HisDataSum!$C:$C,IF(D14="All","<>0",D14),HisDataSum!$E:$E,IF(D16="All","<>0",D16,HisDataSum!$X:$X,"<>Match")

where X:X is flag column used...

Otherwise, you would need to use SUMPRODUCT and limit range sizes.
0
 
LVL 1

Author Closing Comment

by:-Polak
ID: 40209780
Flag column created, and it works, not the most elegant, but certainly better than limiting range sizes!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

867 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now