Maybe I didn't explain my question correctly.
I have a big table with a list of names, amount and %. The information will
change all the time and new names can be added. For example,
First Table
A B C
X $10 5.0%
Y $20 5.5%
Z $30 6.0%
X $40 6.5%
X $50 6.3%
Y $60 6.2%
Z $70 5.2%
C $25 3.5%
Etc…..
Now, I have another table that will group all this together.
Second Table
Name $
%
X =sumif(First Table!a1:a8,Second Table!A1,First Table!
????B1:B8) ?
Y =sumif(First Table!a1:a8,Second Table!A2,First Table!
???B1:B8) ?
Z =sumif(First Table!a1:a8,Second Table!A3,First Table!B1:B8)
?
C =sumif(First Table!a1:a8,Second Table!A4,First Table!B1:B8)
?
To calculate the $ total for X,Y, and Z, I am using the sumif function,
which works.
To calculate a weight average for X,Y,Z, I need a formula that will say,
perform the weighted average for X if (from the first table), if cell A1
(from second table) equals to X.
And I need to do the same for Y, Z, C.
I typically use the sumproduct function to find the weighted average of the
entire table, but here, I just want the weighted average of all the Xs, Yx,
etc..