texasfan1012
New Member
- Joined
- Sep 11, 2013
- Messages
- 5
I have a column of numbers and need to multiply every number by all the other numbers in the column and then take the sum. Is there a way to do this using a formula and not a VBA/Paste Special Multiply?
For example, if the data set were the numbers below I would need:
5*7 + 5*8 + 5*4 + 5*9 + 7*8 + 7*4 + 7*9 + 8*4 + 8*9 + 4*9
[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[/TR]
</tbody>[/TABLE]
How can this be done using a formula so that I don't have to manually calculate this for a larger data set?
For example, if the data set were the numbers below I would need:
5*7 + 5*8 + 5*4 + 5*9 + 7*8 + 7*4 + 7*9 + 8*4 + 8*9 + 4*9
[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64, align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD="align: right"]9[/TD]
[/TR]
</tbody>[/TABLE]
How can this be done using a formula so that I don't have to manually calculate this for a larger data set?