Solved

SUMPRODUCT Not Working

Posted on 2014-11-19
4
120 Views
Last Modified: 2014-11-24
I am really stuck with this one.....

=SUMPRODUCT(CABLE!$B$5:$B$5153='Qty Terminations'!C3,((CABLE!$J$5:$J$5153+CABLE!$P$5:$P$5153)*CABLE!$I$5:$I$5153))

The value being look up are in a column B
Then start the crazy part.
For each match in column B,
(Value in column J + Value in column P) * Value in Column I
This needs to add multiple rows if the match occurs numerous times.
0
Comment
Question by:DougDodge
  • 3
4 Comments
 
LVL 20

Expert Comment

by:Ejgil Hedegaard
Comment Utility
CABLE!$B$5:$B$5153='Qty Terminations'!C3 returns True/False
To convert to 1/0 for multiplication use
--(CABLE!$B$5:$B$5153='Qty Terminations'!C3)

Change to
=SUMPRODUCT(--(CABLE!$B$5:$B$5153='Qty Terminations'!C3),CABLE!$J$5:$J$5153+CABLE!$P$5:$P$5153,CABLE!$I$5:$I$5153)

Open in new window

You could also use
=SUMPRODUCT((CABLE!$B$5:$B$5153='Qty Terminations'!C3)*((CABLE!$J$5:$J$5153+CABLE!$P$5:$P$5153)*CABLE!$I$5:$I$5153))

Open in new window

then CABLE!$B$5:$B$5153='Qty Terminations'!C3 with True/False works as if it is 1/0.
but sumproduct without * should be slightly faster.
0
 

Author Comment

by:DougDodge
Comment Utility
Hmmm.

=SUMPRODUCT(--(CABLE!$B$5:$B$5153='Qty Terminations'!C3),CABLE!$J$5:$J$5153+CABLE!$P$5:$P$5153,CABLE!$I$5:$I$5153) Gives me #N/A

=SUMPRODUCT((CABLE!$B$5:$B$5153='Qty Terminations'!C3)*((CABLE!$J$5:$J$5153+CABLE!$P$5:$P$5153)*CABLE!$I$5:$I$5153)) Gives me #VALUE!

Maybe it could be my data......

Let me try it on some test data......
0
 

Accepted Solution

by:
DougDodge earned 0 total points
Comment Utility
Your formulas worked..... Who would have thought that few blank cells formatted as text would have caused me so much grief....

Thank you for your formulas.... They worked perfectly after I normalized my data....
0
 

Author Closing Comment

by:DougDodge
Comment Utility
Formulas were perfect for the problem.... Additionally offering a second option was a bonus.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Photo Albums in PowerPoint Photo Albums are a very useful tool in PowerPoint and allow you quickly add a large number of images. The images can be formatted in a variety of ways so that you are able to create a professional looking presentation v…
A high-level exploration of how our ever-increasing access to information has changed the way we do our jobs.
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

771 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

10 Experts available now in Live!

Get 1:1 Help Now