Array of calculated values

kazreh

New Member
Joined
Jan 16, 2018
Messages
4
Hi,

Is it possible to have an array in a formula made up of calculated values?

For example something like this (does not work):
=SUMPRODUCT({1;2};{SUMPRODUCT(A1:A10; B1:B10); SUMPRODUCT(B1:B10; C1:C10)})
=SUMPRODUCT({fixed array};{calculated array})

If not directly, is there a workaround?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi, if this is your real world example example then it could be written like as:

=SUM(SUMPRODUCT(A1:A10;B1:B10);SUMPRODUCT(B1:B10;C1:C10)*2)

Or to turn the two seperate results of the inner SUMPRODUCT formula to an array you could employ something like..

=SUMPRODUCT({1;2};CHOOSE({1;2};SUMPRODUCT(A1:A10;B1:B10);SUMPRODUCT(B1:B10;C1:C10)))

But there might be better ways depending on what your final goal is.
 
Upvote 0
Thanks once again FormR! I now know that there is a CHOOSE function.
Thanks to your solution, combined with your solution from my last question, now the problem is solved.

I'm sure there is a better way to do what I have wanted to acheive but a working solution is good enough for me.
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

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