Average of Sumproducts

jholme9

New Member
Joined
Nov 7, 2011
Messages
6
Hi all. I've just stumbled on this forum and am hoping for some help.

My goal is to obtain the average of sumproducts where I have a constant array as the first input of the sumproduct and several thousand rows as the second input of the sumproduct formula. As a simple example, let's assume that I have A1:C1 as my constant. I need the average of each of the sumproducts of A1:C1*A2:C2, A1:C1*A3:C3, ... ,An:Cn. As an added bit of complexity, I'm hoping to do these calculations in one cell, because this process will need to happen about 20,000 times.

I'm assuming I need an array formula for this, but I haven't been able to incorporate both the sumproduct AND the average component... just one or the other.

Any help is appreciated. Thanks!
John
 

Some videos you may like

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,414
Not quite sure if i understood, but, assuming your data in A1:C10, maybe this array-formula

=AVERAGE($A$1*A2:A10+$B$1*B2:B10+$C$1*C2:C10)

Ctrl+Shift+Enter

M.
 

mikerickson

MrExcel MVP
Joined
Jan 15, 2007
Messages
23,920
I'm thinking something like (untested)

=SUM(MMULT(A1:C1,TRANSPOSE(A2:Cn)))/(n-1)
 

jholme9

New Member
Joined
Nov 7, 2011
Messages
6
You guys are awesome. Those actually both worked! I guess I was trying to come at it in too complex a manner.

Thanks so much for your help!

John
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825

ADVERTISEMENT

This one doesn't need CSE

=SUMPRODUCT(A1:C1*A2:C10)/ROWS(A2:C10)
 

Watch MrExcel Video

Forum statistics

Threads
1,123,531
Messages
5,602,202
Members
414,513
Latest member
junbuggle

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
Top