+ Reply to Thread
Results 1 to 7 of 7

Sumproduct, multiply with criteria in two columns

Hybrid View

  1. #1
    Registered User
    Join Date
    03-17-2016
    Location
    Sweden
    MS-Off Ver
    2011
    Posts
    14

    Sumproduct, multiply with criteria in two columns

    Hi!

    I’m trying to sum up a sales sheet.
    I want the two columms ”Price” and ”Amount” to multiply then sum up in one cell, exactly like sumproduct does.
    The problem is that that the two columns are not located at the same place or sheet.
    Also the names of the Unit’s are not in the same order.
    I have tried sumproduct with countif but this only seems to work names of the "Unit's" are in the same order in both columns.
    It’s not an option to change the order of the names in the list.
    Any ideas how this can be solved?

    See attached screenshot down below.


    Thanks in advance.

    Skärmklipp 2016-03-17 18.21.35.jpg

  2. #2
    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
    53,048

    Re: Sumproduct, multiply with criteria in two columns

    Hi, welcome to the forum

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Sumproduct, multiply with criteria in two columns

    I don't think it can be done with SUMPRODUCT, I think you're going to end up needing an array solution.

    Can you post an example spreadsheet to work with?
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  4. #4
    Registered User
    Join Date
    03-17-2016
    Location
    Sweden
    MS-Off Ver
    2011
    Posts
    14

    Re: Sumproduct, multiply with criteria in two columns

    Thanks! Workbook should be attached.
    Attached Files Attached Files

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Sumproduct, multiply with criteria in two columns

    =SUM(B3:B13 * SUMIF(D3:D13, A3:A13, E3:E13))
    Confirmed as an array formula with CTRL+SHIFT+ENTER not just ENTER

  6. #6
    Registered User
    Join Date
    03-17-2016
    Location
    Sweden
    MS-Off Ver
    2011
    Posts
    14

    Re: Sumproduct, multiply with criteria in two columns

    Worked great! =)
    Thanks a lot @ben_hensel

  7. #7
    Forum Contributor
    Join Date
    01-28-2008
    MS-Off Ver
    Excel 365
    Posts
    160

    Re: Sumproduct, multiply with criteria in two columns

    If find this helper column easier. It returns the price of the product in A3. Then, take a simple sumproduct of prices and quantities.
    =IFERROR(VLOOKUP(A3,$D$3:$E$13,2,0),0)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Sumproduct for multiple criteria across columns and rows
    By yacatac in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-12-2015, 07:46 AM
  2. [SOLVED] SUMPRODUCT on Multiple Columns and Criteria
    By glennchung in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-29-2014, 02:44 PM
  3. Sumproduct Multiple Columns with Same Criteria
    By roy__lam in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-19-2014, 02:40 PM
  4. SUMIFS or SUMPRODUCT with Multiple Columns and with Date Criteria
    By eac8423 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-04-2014, 05:20 PM
  5. If criteria match, multiply then sum across multiply worksheets
    By ciayers in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2013, 02:20 PM
  6. [SOLVED] SUMPRODUCT across multiple criteria and columns
    By richardj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-26-2012, 05:50 PM
  7. [SOLVED] sumproduct 2 columns based on criteria in 3rd column
    By excel guru i''m not in forum Excel General
    Replies: 5
    Last Post: 12-31-2005, 11:50 AM

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