Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: 1-2-3 Weighted Average

  1. #1
    Board Regular
    Join Date
    Feb 2002
    Location
    Oklahoma
    Posts
    237
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    In 1-2-3 If I type in the following formula @weightavg(e2..e6,f2..f6) I get a weighted average of the two columns. Is there a formula in Excel that does the same? Thanks in advance for your help. -asa

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Austin, Texas USA
    Posts
    11,654
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    =SUMPRODUCT(E2:E6,F2:F6)/SUM(F2:F6)

  3. #3
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    No standard function, but you can create one easily

    =SUMPRODUCT(Values, Weights)/Sum(Weights)
    or in investment terms,
    =SUMPRODUCT(Shares, Prices)/Sum(Shares)

    note the above. It makes a big difference which range/array you put into the denominator, so be careful.

    =SUMPRODUCT(A1:A5,B1:B5)/SUM(B1:B5)

    is a specific example.

    Bye,
    Jay

  4. #4
    Board Regular
    Join Date
    Feb 2002
    Location
    Oklahoma
    Posts
    237
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    That gives me the answer I need. Thanks. But by the answer, there is no weighted average function, unless I wanted to write one correct?
    Excel 2007

  5. #5
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    That is correct. Excel does *not* have a weighted average function.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •