SUMPRODUCT - Looking up an array in an array?

fun2excel4money

New Member
Joined
Dec 24, 2016
Messages
18
Hello Friends,

[TABLE="width: 704"]
<tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64, align: right"]1[/TD]
[TD="width: 64, align: right"]2[/TD]
[TD="width: 64, align: right"]3[/TD]
[TD="width: 64, align: right"]4[/TD]
[TD="width: 64, align: right"]5[/TD]
[TD="width: 64, align: right"]6[/TD]
[TD="width: 64, align: right"]7[/TD]
[TD="width: 64, align: right"]8[/TD]
[TD="width: 64, align: right"]9[/TD]
[TD="width: 64, align: right"]10[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AZ[/TD]
[TD="align: right"]72[/TD]
[TD="align: right"]95[/TD]
[TD="align: right"]77[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]82[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]76[/TD]
[TD="align: right"]71[/TD]
[/TR]
[TR]
[TD]CA[/TD]
[TD="align: right"]26[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]56[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]27[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]86[/TD]
[/TR]
[TR]
[TD]NY[/TD]
[TD="align: right"]41[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]31[/TD]
[TD="align: right"]73[/TD]
[TD="align: right"]93[/TD]
[TD="align: right"]38[/TD]
[TD="align: right"]64[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]PA[/TD]
[TD="align: right"]46[/TD]
[TD="align: right"]54[/TD]
[TD="align: right"]62[/TD]
[TD="align: right"]77[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]28[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]22[/TD]
[TD="align: right"]54[/TD]
[TD="align: right"]41[/TD]
[/TR]
[TR]
[TD]VT[/TD]
[TD="align: right"]57[/TD]
[TD="align: right"]35[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]52[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]88[/TD]
[TD="align: right"]79[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]29[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD="align: center"][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
I am attempting to use sumproduct to sum up instances of 1,2 and 4 that correspond to CA. Therefore my total should be 155 (26, 90, 56). The formula i am using right now is =SUMPRODUCT((B1:K1=A11:A13)*(A3:A7=B10)*B3:K7), where A11:A13 are the numbers "1,2,4". However, i think the issue arises in =SUMPRODUCT((B1:K1=A11:A13)*(A3:A7=B10)*B3:K7), where I am trying to look up an array in an array. Is there a work around to this so that a sumproduct can determine the answer? Thanks in advance for the help!
 
Last edited:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Try

=SUMPRODUCT(SUMIF($B$1:$K$1,$A$11:$A$13,INDEX($B$3:$K$7,MATCH(B11,$A$3:$A$7,0),0)))
 
Upvote 0

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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