+ Reply to Thread
Results 1 to 5 of 5

Help with SumProduct Formula

  1. #1
    Registered User
    Join Date
    06-11-2010
    Location
    California, United States
    MS-Off Ver
    Excel 2010
    Posts
    17

    Help with SumProduct Formula

    Basically I have 3 ranges (Range A, B, C)

    I'm looking for a formula that will sumproduct ranges A and B, a value of which is equal to the sumproduct of ranges A and C, where ranges B and C contain different values. Cells in range C are equal to 1 if there if the cells in range B are populated.

    So in my example, I need a formula in cell L3 that produces the same value in cell L4, using the numbers in Range C instead of Range B.

    Thank you
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: Help with SumProduct Formula

    Hi Brent_Excel,

    Although I'm not an expert in Excel, however, from your attached example, I wonder if it's even possible to have an answer in the first place. Reason being, As Range C is populated, Range B will have a value of 1, if not 0. Thus, no matter what the value in Range A is, it will be 0, since any value in A multiply by 0 gives 0.

    Secondly, SumProduct, in your example, takes the value of each range in A multiply each value in range B, as well as in range C. But since Range B can only shows as 1 IF AND ONLY IF Range C is is populated, AT BEST, SumProduct of Range A and Range B will be equal to The SUM of Range A itself.

  3. #3
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Help with SumProduct Formula

    I agree with dluhut. The only way to get the same answers is if both ranges B and C contain 1 or 0 in the same columns. Otherwise they will not sumproduct to the same number.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Help with SumProduct Formula

    Try SUMIF like this

    =SUMIF(B3:J3,"<>",B6:J6)
    Audere est facere

  5. #5
    Registered User
    Join Date
    06-11-2010
    Location
    California, United States
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Help with SumProduct Formula

    That is PERFECT. SOLVED. Thank you very much!!!

    (I should have clarified to the other responders - I don't necessarily need to use the sumproduct function if using another function, in this case SUMif, will produce a similar result)

+ 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