Sum Array Range & Individual Cells

N

Native

Hello,

If I do a regular array, I would do something like:

{=SUM(A1:A5*B1:B5)}

to multiple a1*b1 + a2*b2, etc.

However, can i have a range like A1:A5, but then select individual
cells to multiply by?

For example,

{=SUM(A1:A5*D1,F5,G6,H8,I9)}

where a1*d1 + a2*f5 + a3*g6, etc
 
T

T. Valko

This is limited to 29 cells but works:

=SUMPRODUCT(A1:A5,CHOOSE({1;2;3;4;5},D1,F5,G6,H8,I9))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top