SUMPRODUCT Assistance

eggyjla

Active Member
Joined
Dec 16, 2004
Messages
346
I'm looking for some assistance generating a SUMPRODUCT formula in cell J10 which produces the results of cell K10. I was having difficulty creating an array which determines the Max(Sum)). Any help would be greatly appreciated.<HTML><HEAD>
******** Langage JavaScript><!---
function ViewSource() {
var HtmlSource;
HtmlSource = document.all.ForSubmit.innerHTML;
HtmlSource = RetDeleted(HtmlSource);
document.write('<HTML><BODY BGCOLOR=#E0F4EA><CENTER><FORM><TEXTAREA ROWS=30 COLS=90%>');
document.write(HtmlSource);
document.write('</TEXTAREA></FORM></CENTER></BODY></HTML>');
}
function CopyToClipBoard() {
var HtmlSource;
HtmlSource = document.all.ForSubmit.innerHTML;
HtmlSource=RetDeleted(HtmlSource);
window.clipboardData.setData("Text",HtmlSource);
alert('Html source of above image\n\nhas been copied to your clip board\n\nJust paste it into Message Body\n\nIf you cannnot paste source from clip board,\n\nclick [View Source] button and paste manually.');
}
function RetDeleted(targetstring) {
if (targetstring.indexOf(unescape('%0D%0A')) > -1) rcode = unescape('%0D%0A')
else if (targetstring.indexOf(unescape('%0A')) > -1) rcode = unescape('%0A')
else rcode = unescape('%0D');
i = 0;
p = '';
while (targetstring.indexOf(rcode,i) != -1) {
m = targetstring.indexOf(rcode,i);
p += targetstring.substring(i,m);
i = m + rcode.length;
}
p += targetstring.substring(i,targetstring.length);
return p;
}
*********></HEAD><BODY BGCOLOR=#E0F4EA><CENTER><FONT COLOR=#339966 SIZE=5>[HtmlMaker 2.42]</FONT><BR><BR></CENTER><HR><BR><SPAN id='ForSubmit'>
******** LANGUAGE="JavaScript" ************************************************************************>
Book2.xls
BCDEFGHIJK
3NORMAL
4
5Case1Case2Case3Case4
6Item129.1236831.0106831.0706825.07868
7Item274.1163280.0173279.7571286.54312
8Item379.8891484.526497.8001283.39112
9Item479.7608985.6387986.4761992.50019
10Item1040.00868
11
12ALTERNATE
13Summer
14Case1Case2Case3Case4
15Item13.2317.2526.80214.93
16Item20.12480.12480.18480.2448
17Item33.07283.07283.46843.4684
18Item40.31280.312816.804421.6332
Sheet1
</SPAN><BR><CENTER><HR><FORM NAME='form1'><INPUT TYPE='Button' value='Please click this button to send the source to clipbord' *******='CopyToClipBoard();'><INPUT TYPE='Button' value='View Source' *******='ViewSource();'></FORM><FONT COLOR=#339966 SIZE=2> This free code was written by Colo and Ivan F Moala:[HtmlMaker 2.42] - 15th May 2003</FONT><BR><FONT COLOR=#339966 SIZE=2>Code mods by Ivan F Moala - 15th May 2003</FONT></HR></BODY></HTML>
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Sorry - I figured as much. It has been a while since I attempted to post a spreadsheet. Copy/Paste Special/Text the following to cell B3.

Formula of J10:
Code:
 =SUMPRODUCT(--(COUNTIF(OFFSET($C$6:$C$9,4,,1),$I10)>0),N(MAX(OFFSET($D$6:$G$9,4,,1))))

Formula of K10:
Code:
 =MAX(D6+D15,E6+E15,F6+F15,G6+G15)

NORMAL

Case1 Case2 Case3 Case4
Item1 29.12368 31.01068 31.07068 25.07868
Item2 74.11631644 80.01731644 79.75711644 86.54311644
Item3 79.889144 84.5264 97.800116 83.391116
Item4 79.760888 85.638788 86.476188 92.500188
Item1 0 40.00868

ALTERNATE
Summer
Case1 Case2 Case3 Case4
Item1 3.231 7.252 6.802 14.93
Item2 0.1248 0.1248 0.1848 0.2448
Item3 3.0728 3.0728 3.4684 3.4684
Item4 0.3128 0.3128 16.8044 21.6332
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top