Sumproduct for 3 arrays/criteria

jwalkerday

New Member
Joined
May 1, 2018
Messages
18
Hi,

I'm trying to add a third criteria in a SUMPRODUCT FORMULA-

=SUMPRODUCT('Sheet2'!$I$17:$EU$58*('Sheet2'!$I$15:$EU$15=$B$1)*('Sheet2'!$I$16:$EU$16=B11)*('Sheet2'!$F$17:$F$59=$A$12))

So I'm trying to locate year, month and code. But I get #N/A even though no #n/a's in source data. Can you help?

Data eg
[TABLE="width: 661"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]Year[/TD]
[TD]2018[/TD]
[TD]2018[/TD]
[TD]2018[/TD]
[/TR]
[TR]
[TD]CODE[/TD]
[TD][/TD]
[TD]Posting Period[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]6110000[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]6110001[/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

I did something similar here with your help- https://www.mrexcel.com/forum/excel...heck-if-flagged-result-then-return-value.html

However in that one instead of month variable I had a fixed "Result" string.
 
Last edited:

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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