擅长加权平均交易量

时间:2018-09-18 19:24:37

标签: excel average weighted

enter image description here

我想知道如何根据Score1量和Score2量得出Score1和Score2的加权平均值。由于得分1的音量(50)大于得分2的音量(25),因此总得分应比“ 100”更接近“ 50”。一个好的加权公式将有助于得出此结果。答案应该在60左右(至少接近50)。 Excel中的答案将不胜感激。谢谢!

3 个答案:

答案 0 :(得分:0)

You could do something like the following (easily transferable to Excel):

score1 = 50
score2 = 100

score1_vol = 50
score2_vol = 25

output = (score1*score1_vol + score2*score2_vol)/(score1_vol + score2_vol)

Returns:

66.66

答案 1 :(得分:0)

Assuming 100 is in D2:

=(C2*F2+D2*G2)/(F2+G2)

It may be easier to comprehend with a more tangible example. Say Score is the number of eggs in a box and ScoreVolume is the number of boxes. To calculate the average number of eggs per box you need the total number of 'eggs': (C2*F2+D2*G2) divided by the total number of boxes: (F2+G2).

答案 2 :(得分:0)

SUMPRODUCT()

这是使用SUMPRODUCT()的另一个选项。这适用于大型数据集。