+ Reply to Thread
Results 1 to 5 of 5

Nested Sums

  1. #1
    Registered User
    Join Date
    12-29-2012
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    7

    Nested Sums

    Hi,

    I'm looking to do a 'nested' (?) sum but unsure how.

    I've got a column of costs and a column of quantities, and i want to calculate the total (cost x quantity) for all items without having to make a new column but put it all in one cell.

    like, =(A1*B1)+(A2*B2)+(A3*B3)+..... also, what's this kind of function called?

    I know its quite a simple sum, but can't seem to find it online, (not searching for it with the right words).

    Cheers

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Nested Sums

    Maybe try Sumproduct

    =Sumproduct(A1:A3,B1:B3)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Nested Sums

    try something like this...
    =SUMPRODUCT((A1:A3)*(B1:B3))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    10-22-2012
    Location
    hyd
    MS-Off Ver
    2010
    Posts
    159

    Cool Re: Nested Sums

    Hi,

    use sumproduct function.

    =sumproduct(first column,second column)

    ex:-

    =sumproduct(A:A,B:B)

    Regards,
    PRB

  5. #5
    Registered User
    Join Date
    12-29-2012
    Location
    Sheffield
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Nested Sums

    Sumproduct, that's the one.
    thank you all.

+ 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