Solved

Sumproduct Help

Posted on 2013-02-01
4
290 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
  • 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

789 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