+ Reply to Thread
Results 1 to 5 of 5

Sum the product of two colmuns of data?

Hybrid View

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    georgia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Sum the product of two colmuns of data?

    I need to sum the results of an operation using two different columns of numbers. Basically:

    A1*cos(B1)+A2*cos(B2)+...A500*cos(B500)

    with some constants thrown in. Is it possible to put an operation like this in the sum function and get it to work? I know I could make a new column of data with the function and sum that to get what I need, but I have to do this 300 times so I don't want to handle that much data if at all possible.

    Thanks in advance!
    Last edited by joeblog60; 12-01-2011 at 03:17 PM.

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Sum the product of two colmuns of data?

    Perhaps =sumproduct(A1:A500,cos(B1:B500))

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    georgia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Sum the product of two colmuns of data?

    That seems to be working, thanks for saving me four hours!

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Sum the product of two colmuns of data?

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  5. #5
    Registered User
    Join Date
    11-17-2011
    Location
    georgia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Sum the product of two colmuns of data?

    OK, what if I need to find the sum of:

    C1*((A1-B1)(ln(A1-B1)^2)+(A1-B1)*(ln(A1-B1)^2)) +
    C2*((A1-B2)(ln(A1-B2)^2)+(A1-B2)*(ln(A1-B2)^2)) +
    ...
    C500*((A1-B500)(ln(A1-B500)^2)+(A1-B500)*(ln(A1-B500)^2))

    Is this possible? Each term has a + and a * in it.

+ 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