Solved

SUMPRODUCT Not Working

Posted on 2014-11-19
4
127 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 21

Expert Comment

by:Ejgil Hedegaard
ID: 40453805
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
ID: 40453953
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
ID: 40453991
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
ID: 40461687
Formulas were perfect for the problem.... Additionally offering a second option was a bonus.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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

Suggested Solutions

Title # Comments Views Activity
kendo spreadsheet 2 291
Contact management 16 238
trailing spaces all columns 4 99
Excel 2007 Formula to Remove Null/#Value Results from Cell 1 67
In this article I will provide some simple productivity hacks that will help you use Google to specifically show results from any web site (Experts-Exchange.com in my example), with minimal effort in Chrome and Firefox. I've seen a common theme a…
Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
This video walks the viewer through the process of creating an MLA formatted document, as well as a bibliography with citations.
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…

831 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