+ Reply to Thread
Results 1 to 6 of 6

Sumproduct used when certain criteria is met

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    SLC,Ut
    MS-Off Ver
    Excel 2010
    Posts
    15

    Sumproduct used when certain criteria is met

    I am working on this database and need it to add up the product of two columns that meet certain criteria, i have figured out how to sum up the number that meet the criteria but not how to multiple the two columns after they find which ones meet the criteria. so in the attachment Sumproduct example.xlsm you can see the database where it has the customer information listed, what i need is to have the sum of the product of quantity and capacity for any customer that has a small model size, has a ship date for June 14, and possibility of over 70% I'm trying to use
    Please Login or Register  to view this content.
    without success. any suggestions would be appreciated.
    Last edited by jgcramer; 05-22-2013 at 11:01 AM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Sumproduct used when certain criteria is met

    Hi,

    Try =SUMPRODUCT((I2:I12="Small")*(H2:H12=DATE(2014,6,13))*(F2:F12>0.7)*(D2:D12*E2:E12))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Sumproduct used when certain criteria is met

    You need to coerce the date string "6/13/2014" to a real date..

    Try
    =SUMPRODUCT(--(H2:H12="6/13/2014"+0),--(I2:I12="Small"),--(F2:F12>70%),D2:D12,E2:E12)

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,360

    Re: Sumproduct used when certain criteria is met

    =SUMPRODUCT(--(H2:H12=DATEVALUE("13/06/2014")),--(I2:I12="Small"), D2:D12,E2:E12)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Sumproduct used when certain criteria is met

    I think the problem is the date, in column H you have 'real' dates and in the formula the date is text.

    Try wrapping the date in the formula with DATEVALUE.

    You are also missing the possibilty criteria.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  6. #6
    Registered User
    Join Date
    05-13-2013
    Location
    SLC,Ut
    MS-Off Ver
    Excel 2010
    Posts
    15

    Talking Re: Sumproduct used when certain criteria is met

    Wow, thanks everyone, it works out great.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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