SUM of averages

XcelLearner

Board Regular
Joined
Feb 6, 2016
Messages
52
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi,

I have a List 1 consisting of n tickers, List 1 can change every now and then. I have a database in array A:C, which has m rows, each with several data points (indicator 1, and 2). Database A:C is used to feeds data for tickers in List 1.

How can I build a formula that uses the tickers in List 1 (in the example in the photo, it has 3 tickers AA, AC, and AD, but it can has a lot more) to look for their respective values in array A:C, and calculate the sum of averages of all tickers in the list? In this photo, I manually do the SUM(AVERAGES) for AA, AC, AD to demonstrate the result.

Thank you very much in advance.

1660757121415.png
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
I think this is what you're trying to do:

ABCDEFGH
1
2AA210List1:AAACAD
3AB46
4AC42Result12.5
5AD52Check:12.5
6AE84
7
Sheet1
Cell Formulas
RangeFormula
F4F4=SUM(FILTER(B2:C6,ISNUMBER(MATCH(A2:A6,List1,)))/COLUMNS(B2:C2))
F5F5=SUM(AVERAGE(B2:C2),AVERAGE(B4:C4),AVERAGE(B5:C5))
Named Ranges
NameRefers ToCells
List1=Sheet12!$F$2:$H$2F4

But you don't appear confident above, and in your previous post: SUM of n AVERAGES
about exactly which Average or Sum you need.

We can easily tweak the formula if 12.5 isn't the result you're expecting.
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,978
Members
449,200
Latest member
Jamil ahmed

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