Array formula as SUMPRODUCT argument

foreveryone

New Member
Joined
Apr 20, 2018
Messages
8
Is this possible?

I have an array of IFs that's matches 1 row and returns a 4 column range, so 4 numbers. I can sum this fine but when I try passing it as the first argument in to sumproduct, I get a value! error. Here's some sample data:

1
A
B
C
DEF
2
apple
mon
1
2
3
4
3
apple
tues
1
2
3
5
4
lemon
mon
5
2
3
6
5
orange
mon
5
2
3
1

<tbody>
</tbody>

So I have {SUMPRODUCT(IF(A2:A5="Apple",IF(B2:B5="mon",C2:F5)),Z1:Z4})}

Where Z1:Z4 is some other 4 numbers.

In my actual data I have 4 IFs and looking at more cells but of course, shouldn't matter!

Many thanks
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Welcome to Mr Excel forum

Try
=SUMPRODUCT((A2:A5="Apple")*(B2:B5="mon")*C2:F5*Z1:Z4)
confirmed with just Enter

Hope this helps

M.
 
Upvote 0
Hi!

You can try too this small modification in your formula:

Use Ctrl+Shift+Enter to enter the formula

=SUM(IF(A2:A5="apple",IF(B2:B5="mon",C2:F5*Z1:Z4)))

Markmzz
 
Upvote 0

Forum statistics

Threads
1,215,433
Messages
6,124,861
Members
449,194
Latest member
HellScout

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