Results 1 to 4 of 4

Thread: Sum of Multiply Cells

  1. #1
    Board Regular
    Join Date
    Oct 2012
    Posts
    84
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Sum of Multiply Cells

    Hi

    I have a data set with several columns of data that I am looking for formula for that will give sum of all cell after cells in column A and B have been multiplied (i.e. a3*b3 etc to get the sum of all) across all sets of columns, to shorten the formula from what is currently being used which is (A1*B1)+(A2*B2) etc. etc. as it takes a lot when there are 50 + rows to each set of 2 columns and there are several sets of these that need the sum for each 2 columns in the worksheet.
    I could create anew column to do the multiplying then sum that column, But then I need to hide this.
    Hope I can be helped with this


    The required answer of this data set would be 7400

    A B SUM
    3 370 1100
    3 370 1100
    3 370 1100
    3 370 1100
    3 370 1100
    3 370 1100
    1 370 370
    1 370 370

    Cheers

  2. #2
    MrExcel MVP mikerickson's Avatar
    Join Date
    Jan 2007
    Location
    Davis CA
    Posts
    22,603
    Post Thanks / Like
    Mentioned
    20 Post(s)
    Tagged
    15 Thread(s)

    Default Re: Sum of Multiply Cells

    Try =SUMPRODUCT(A2:A9,B2:B9)
    Last edited by mikerickson; Sep 8th, 2019 at 07:34 PM.

  3. #3
    Board Regular
    Join Date
    Oct 2012
    Posts
    84
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Sum of Multiply Cells

    Thanks mikerickson
    That has done the job for me
    Could I exchange the data ranges in the formula with names ranges and would it still work
    or would this formula work if i was to replace the ranges with named ranges or i am thinking of the data being down loaded from a database and this would then end up as a table of data

    Cheers
    NZAS

  4. #4
    MrExcel MVP mikerickson's Avatar
    Join Date
    Jan 2007
    Location
    Davis CA
    Posts
    22,603
    Post Thanks / Like
    Mentioned
    20 Post(s)
    Tagged
    15 Thread(s)

    Default Re: Sum of Multiply Cells

    Quote Originally Posted by NZAS View Post
    ...Could I exchange the data ranges in the formula with names ranges and would it still work
    or would this formula work if i was to replace the ranges with named ranges...
    What happened when you tried it?

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •