+ Reply to Thread
Results 1 to 3 of 3

Trying to figure out how to exclude 0's from a weighted average

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    MA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Trying to figure out how to exclude 0's from a weighted average

    I have a portfolio with a number of investments and i need to aggregate certain data such as PE ratios on a portfolio level. This entails taking the PE ratio of each investment and multiplying it by the weighted ave of the investment in the portfolio and than adding them all together. My problem is this, some investments don't have PE ratios pulled and I want to exclude the from the calc but that means that i need to adjust the weighted average of the rest of the investments in the portfolio Is there a sumproduct formula that can do that? Example is attached. Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Trying to figure out how to exclude 0's from a weighted average

    Assuming it's column G you're trying to calculate then something like this in G2, copied down, maybe:

    =IF(ISNUMBER(C2),E2/SUMIF($C$2:$C$8,">0",$E$2:$E$8),"")

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    MA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Trying to figure out how to exclude 0's from a weighted average

    Looks good Andrew, thank you kindly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1