+ Reply to Thread
Results 1 to 6 of 6

Sum the result of column times column by row...

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Sum the result of column times column by row...

    I could think of no better way to describe this one...

    I have a spreadsheet that has a list of parts, prices and quantities. I want to provide an invoice total at the top of my entry worksheet. I know I could create a hidden column and do the price*quantity then provide a sum of that column for my worksheet but I was hoping there was a more elegant way of writing all that into a single cell formula...

    Can I accomplish this in one stroke?

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Sum the result of column times column by row...

    Try =SUMPRODUCT("your array with quantities","your array with price")
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Sum the result of column times column by row...

    yes, it is very much possible, depending on the structure of your worksheet. care to upload a sample?

  4. #4
    Registered User
    Join Date
    04-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sum the result of column times column by row...

    Soren, that worked for me, thanks! I thought by title sumproduct might do it but then when they listed it as arrays I was afraid it would sum the two arrays seperately and then sum that combined total. I didn't understand the operator (*) was assumed in the function!

    Thanks a bunch, now my worksheet can remain elegant!

  5. #5
    Registered User
    Join Date
    04-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sum the result of column times column by row...

    Thanks Icestationzbra. I got it working with Soren's comments.

  6. #6
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Sum the result of column times column by row...

    Yes, it's the "sum of the products". And no problem.

+ 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