Use of sumproduct() in EXCEL

G

Guest

Hi.
Does anyone know if I can use the sumproduct() formula in parallel columns?
For example lets say that I have n columns A1:A100 =1:100,
B1:B100=10:1000,C1:C100=101:200,D1:D100=1010:2000,…,etc.
I would like to calculate the sum A*B + C*D + …..+ Xn*Xn+1, using
sumproduct() formula and without say sumproduct()1 + sumproduct()2+…..+
sumproduct()n.
The sumproduct formula must be used only once.
Any idea
Thank you.
 
B

Bob Phillips

=SUMPRODUCT((A1:A100*B1:B100)+(C1:C100*D1:D100))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)
 
G

Guest

Sorry didnt work. Extract #Δ/Υ


Bob Phillips said:
=SUMPRODUCT((A1:A100*B1:B100)+(C1:C100*D1:D100))

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)
 
B

Bob Phillips

No, you give more detail in how it didn't work. I tested it and it worked
exactly as I read your post.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)
 
H

Harlan Grove

Îικος said:
Does anyone know if I can use the sumproduct() formula in parallel columns?
For example lets say that I have n columns A1:A100 =1:100,
B1:B100=10:1000,C1:C100=101:200,D1:D100=1010:2000,…,etc.
I would like to calculate the sum A*B + C*D + …..+ Xn*Xn+1, using
sumproduct() formula and without say sumproduct()1 + sumproduct()2+…..+
sumproduct()n.
The sumproduct formula must be used only once.

Why only one SUMPRODUCT call? Did you make a bet that this could be
done?

If you don't use multiple SUMPRODUCT calls, follow Bob Phillips
approach, which DOES work as written. That is, as long as all cells in
A1:D100 contain numbers, the formulas

=SUMPRODUCT(A1:A100,B1:B100)+SUMPRODUCT(C1:C100,D1:D100)

and

=SUMPRODUCT(A1:A100*B1:B100+C1:C100,D1:D100)

return the same result.
 
G

Guest

I found what happened. I used different number of cells. ( A1:A100*B1:B100 +
C1:C67*D1:D67+E1:E94*F1:F94 …etc. ) If i use same number in every column its
ok. I didn’t say that from the beginning by mistake.
 

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