close

How do I give different weights to the totals That I am averaging?

Let's say column A contains the values and B contains the weights, expressed
as decimals. Column B needs to sum to 100% for this to be correct.

=sumproduct(A1:A10,B1:b10)/sum(A1:a10)

quot;sds1rrnchquot; wrote:

gt; How do I give different weights to the totals That I am averaging?

Multiply them by a percent.
All percents must add to 100%

Example:

A1: a sum that equals 100
A2: a sum that equals 50

B1: 75%
B2: 25%

B3: =sumproduct(A1:A2,B1:B2)
The weighted average is 87.5

Note: That formula is the same as:
B3: =(A1*B1) (A2*B2)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Proquot;sds1rrnchquot; wrote:

gt; How do I give different weights to the totals That I am averaging?

Not quite correct:

=sumproduct(A1:A10,B1:b10)quot;Duke Careyquot; wrote:

gt; Let's say column A contains the values and B contains the weights, expressed
gt; as decimals. Column B needs to sum to 100% for this to be correct.
gt;
gt; =sumproduct(A1:A10,B1:b10)/sum(A1:a10)
gt;
gt; quot;sds1rrnchquot; wrote:
gt;
gt; gt; How do I give different weights to the totals That I am averaging?

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()