Solved

SUMPRODUCT Not Working

Posted on 2014-11-19
4
128 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 22

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Need a Marquee for Windows 4 78
To array or not to array 11 74
Error to office online activation want to rol back 2 39
nested If/and formula needed 12 62
This article describes how to use the Send to Mail Recipient command. The instructions apply generally to Office 2007 and later versions, but Microsoft® Word 2013 was used for the specific steps and figures.  What is Send to Mail Recipient? Send…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This video walks the viewer through the process of creating Hyperlinks for the web and other documents. Select the "Insert" tab: Click "Hyperlink":  Type "http://" followed by a web address to reference a website or navigate to a document to ref…
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

735 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