+ Reply to Thread
Results 1 to 7 of 7

Sum Product for multiple criteria

  1. #1
    Forum Contributor
    Join Date
    05-05-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2013
    Posts
    103

    Sum Product for multiple criteria

    Hello,

    I am trying to find the total revenues by month and product from the attached spreadsheet. For example, cell c3 in Revenues 2010-2014 should return the total revenues from 2010 spreadsheet where Row A in 2010 matches cell C2 in Revenues 2010-2014 and column b in 2010 matches A3 IN Revenues 2010-2014. Now here is where I get confused. That will only return the total number of items sold, I need to multiply it by it's corresponding price in value J to get the total revenues. Here is my formula that does not work:
    =SUMPRODUCT(('2010'!$K$1:$BJ$1='Revenues 2010-2014'!C$2)*('2010'!$B$3:$B$200='Revenues 2010-2014'!$A3),'2010'!K3:BJ200)*SUMPRODUCT(('2010'!K1:BJ1='Revenues 2010-2014'!C2)*('2010'!B3:B200='Revenues 2010-2014'!A3),'2010'!J3:J200)
    Any suggestions?

    Thanks,
    Laura
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Sum Product for multiple criteria

    Are you set on using SUMPRODUCT to accomplish this? I believe this can be done using a simple SUMIF as well. Try this, paste in cell C3 of the Revenues 2010-2014 tab and drag down/across:

    Please Login or Register  to view this content.
    Will something like that work?

    Hope this helps!
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Contributor
    Join Date
    05-05-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2013
    Posts
    103

    Re: Sum Product for multiple criteria

    That did not work, but thanks for your effort. I think I may need to input some sort of frequency function but I'm not quite sure how to do so.

    Thanks,
    Laura

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Sum Product for multiple criteria

    What would be the expected outcome for a few of these products? Having an example would make creating a working workbook much easier.

  5. #5
    Forum Contributor
    Join Date
    05-05-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2013
    Posts
    103

    Re: Sum Product for multiple criteria

    Hello,

    I had to shrink the file for size purposes, so not all of the types are in here. The correct value for cell C5 is 354,491. It is the sumproduct of all the unit sales in columns K-O in 2010 (which match cell C2 in Revenues 2010-2014) by their corresponding price in column J of 2010. Does this help? I have attached a new file highlighting the hardcoded cell with the correct value. I realize I could add total columns for each month on the 2010 sheet, but I would like something less time consuming.

    thanks,
    Laura
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: Sum Product for multiple criteria

    Aha!!! There is a mistake in your estimate for the value of C5. It should be 277119. the figure you gave is for ALL categories, not just for category 3. I have attached example.xlsx to show you that your figure was wrong and amended the main sheet with the correct formula.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  7. #7
    Forum Contributor
    Join Date
    05-05-2014
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2013
    Posts
    103

    Re: Sum Product for multiple criteria

    Glenn,

    Thank you!!!!! I was stuck on this for hours!!!! Great work!

    Laura

+ 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. multiple column sum product based on set criteria
    By b16dlg in forum Excel General
    Replies: 4
    Last Post: 07-11-2012, 07:51 AM
  2. sum product w/ multiple criteria
    By TechRetard in forum Excel General
    Replies: 4
    Last Post: 09-06-2011, 03:32 PM
  3. Multiple criteria for Sum-Product
    By thelucasgray in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2010, 09:27 PM
  4. Replies: 2
    Last Post: 04-02-2009, 05:56 AM
  5. Sum Product Multiple Criteria
    By PeterSmith in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-28-2008, 12:07 PM

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