1. #1
    Justin7
    Justin7's Avatar Become A Pro!
    Join Date: 07-31-06
    Posts: 8,577
    Betpoints: 1506

    Help please on another excel question...

    I have two columns - A and B. I want to get the sum of the products of these rows
    i.e. A1*b1 + a2*b2 + a3*c3 ... a9*b9

    I'll be repeating this formula in different places, so I don't want to manually do that. Is there an easy command to do that? I can't seem to get sum working properly with it.

  2. #2
    Pancho sanza
    Pancho sanza's Avatar Become A Pro!
    Join Date: 10-18-07
    Posts: 386

    why does it jump from a*b to a*c (3rd formula)?

  3. #3
    LT Profits
    LT Profits's Avatar Become A Pro!
    Join Date: 10-27-06
    Posts: 90,963
    Betpoints: 5179

    Why not just put the products of A and B in C? Then the simple formula would be sum(c1.c9)

  4. #4
    LT Profits
    LT Profits's Avatar Become A Pro!
    Join Date: 10-27-06
    Posts: 90,963
    Betpoints: 5179

    Quote Originally Posted by Pancho sanza View Post
    why does it jump from a*b to a*c (3rd formula)?
    I think it was just a typo and he meant a3*b3

  5. #5
    Justin7
    Justin7's Avatar Become A Pro!
    Join Date: 07-31-06
    Posts: 8,577
    Betpoints: 1506

    Yes, meant to be a3*b3.

    I'd prefer to do it without an extra column - I am using this calculation a lot.

  6. #6
    Pancho sanza
    Pancho sanza's Avatar Become A Pro!
    Join Date: 10-18-07
    Posts: 386

    CELL C1

    =SUM(A1*B1)

    CELL C2

    =SUM(A2*B2)+C1

    CELL C3

    =SUM(A3*B3)+C2


    Once you fil in cell C2, just copy down

  7. #7
    LT Profits
    LT Profits's Avatar Become A Pro!
    Join Date: 10-27-06
    Posts: 90,963
    Betpoints: 5179

    He said he didn't want third column.

  8. #8
    Justin7
    Justin7's Avatar Become A Pro!
    Join Date: 07-31-06
    Posts: 8,577
    Betpoints: 1506

    Quote Originally Posted by Pancho sanza View Post
    CELL C1

    =SUM(A1*B1)

    CELL C2

    =SUM(A2*B2)+C1

    CELL C3

    =SUM(A3*B3)+C2


    Once you fil in cell C2, just copy down
    That works, but it adds another column.

    Anyway to do this in one cell?

  9. #9
    Pancho sanza
    Pancho sanza's Avatar Become A Pro!
    Join Date: 10-18-07
    Posts: 386

    Quote Originally Posted by LT Profits View Post
    He said he didn't want third column.
    Where will he show the output?

  10. #10
    Data
    Data's Avatar Become A Pro!
    Join Date: 11-27-07
    Posts: 2,236

    =SUMPRODUCT(A1:An*B1:Bn)

  11. #11
    Justin7
    Justin7's Avatar Become A Pro!
    Join Date: 07-31-06
    Posts: 8,577
    Betpoints: 1506

    Quote Originally Posted by Data View Post
    =SUMPRODUCT(A1:An*B1:Bn)
    Data, you're an excel machine! Thanks, this is exactly what I was looking for.

  12. #12
    LT Profits
    LT Profits's Avatar Become A Pro!
    Join Date: 10-27-06
    Posts: 90,963
    Betpoints: 5179

    Quote Originally Posted by Data View Post
    =SUMPRODUCT(A1:An*B1:Bn)
    Thanks!

    I didn't even know a SUMPRODUCT function existed.

  13. #13
    Pancho sanza
    Pancho sanza's Avatar Become A Pro!
    Join Date: 10-18-07
    Posts: 386

    Oh, thats what you meant.

    That was my next answer.

    So Data is the excel guru around here, good to know.

  14. #14
    Data
    Data's Avatar Become A Pro!
    Join Date: 11-27-07
    Posts: 2,236

    Justin7, LT Profits, no problem.

    Pancho sanza, I am not a guru, just got some experience with it while working on my data, so, I try to help when I can.

Top