Solved

Sumproduct Help

Posted on 2013-02-01
4
292 Views
Last Modified: 2013-02-01
Hello
Sumproduct Help Needed:
Sumproduct in cell G2 is returning 99. But I want it to return 143
Reason  - Add up 77 not 33 to the  I column value of g1 – how can that be possible?

If there is a SGNumNew, then ignore the corresponding value of SGNum from the sumproduct sum and add the SGNumNew to the sumproduct
sumup2.xlsx
0
Comment
Question by:Rayne
[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
  • 2
  • 2
4 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 38845143
There are 3 g1's in column D, so should it be 99+77 = 176

with formula:

=SUMPRODUCT((INDEX(source,,1)=D2)*((INDEX(source,,6))+(INDEX(source,,7))))
0
 

Author Comment

by:Rayne
ID: 38845175
Hello NB_VC
Coditional Summ up – so if column J has a number : 0 or greater, then add it to the sum product and then subtract or remove the I value for the same row – its like overwrite – the column J value writes over the column I value  - makes sense? That’s why its should sum 143
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
ID: 38845194
Ok, try:

=SUMPRODUCT((INDEX(source,,1)=D2)*((INDEX(source,,6))+(INDEX(source,,7))))-SUMPRODUCT((INDEX(source,,1)=D2)*(ISNUMBER(INDEX(source,,7))*(INDEX(source,,6))))
0
 

Author Comment

by:Rayne
ID: 38845269
Thanks NB_VC
works like a charm
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

726 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