+ Reply to Thread
Results 1 to 3 of 3

Weighted Sum of Positives in a Range

  1. #1
    Registered User
    Join Date
    05-03-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Weighted Sum of Positives in a Range

    A B C D E F
    2 S1 S2 Weight
    3 C1 2 -1 5
    4 C2 1 -2 1
    5 C3 0 -2 5
    6 C4 -1 1 3
    7 Weighted Sum of Positives
    8 Weighted Sum of Negatives

    Pugh.jpg

    Hi, I am trying to calculate the weighted sum of positives and negatives in the attached spreadsheet. The value in D7 should be 11 (2*5+1*1) and in D8 should be -3. I've tried SUMIF, SUMPRODUCT, PRODUCT(IF..) with no success so I must be doing something wrong. Thanks for your help!!
    Attached Files Attached Files

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Weighted Sum of Positives in a Range

    Try this:

    Please Login or Register  to view this content.
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

  3. #3
    Registered User
    Join Date
    05-03-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Weighted Sum of Positives in a Range

    ConneXionLost - the SUMPRODUCT worked like charm. Now I have to figure out how I screwed up my syntax when I tried to use that function! Thanks!

+ 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