+ Reply to Thread
Results 1 to 6 of 6

I think I need to use SUMPRODUCT but can not make it work

  1. #1
    Registered User
    Join Date
    12-02-2014
    Location
    Houston, TX
    MS-Off Ver
    2003
    Posts
    1

    I think I need to use SUMPRODUCT but can not make it work

    I need to count the number of times a Salesperson sells a product based the product or products and on a particular dollar value range.

    I need to know how many times Bob sold a cup that has a value between $1 and $5 or how many times he sold anything that was between $1 and $5.

    B2:B11 C2:C11 D2:D11 F2:F11 G2:G11
    List of List of Salesperson $ Each Item List of all products List of Salespeople
    Products Sold who made Sale sold for

    What I am trying to use only counts the number of cups sold and does not filter for the dollar value.

    =SUMPRODUCT((C2:C11=G2)*(B2:B11=F5)*(D2:D11>=1)*(D2:D11<=5)) When I use this it returns the total of the cups sold in the dollar range. But when I add multipe products the formula does not work. =SUMPRODUCT((C2:C11=G2)*(B2:B11=F2:F11)*(D2:D11>=1)*(D2:D11<=5))

    Any suggestions?

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: I think I need to use SUMPRODUCT but can not make it work

    Hi missingdigit!

    Welcome to the forum...
    Aren't you missing Something..

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Re: I think I need to use SUMPRODUCT but can not make it work

    Hi missingdigit
    You may need to use an array to look up your F2:F11 reference. But without an uploaded sheet one cannot determine what exactly it is.
    Also, I think your formulas should be inserted inside Code tags (see#) on either side.

  4. #4
    Forum Contributor
    Join Date
    07-29-2014
    Location
    Oz
    MS-Off Ver
    2010
    Posts
    142

    Re: I think I need to use SUMPRODUCT but can not make it work

    Try:
    Please Login or Register  to view this content.
    Confirmed with CONTROL + SHIFT + ENTER as an array formula

    Dan
    Don't forget to ☆ me if I helped you!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: I think I need to use SUMPRODUCT but can not make it work

    Quote Originally Posted by missingdigit View Post
    But when I add multipe products the formula does not work. =SUMPRODUCT((C2:C11=G2)*(B2:B11=F2:F11)*(D2:D11>=1)*(D2:D11<=5))

    Any suggestions?
    Maybe something like this...

    =SUMPRODUCT(--(C2:C11=G2),--ISNUMBER(MATCH(B2:B11,F2:F11,0)),--(D2:D11>=1),--(D2:D11<=5))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Contributor
    Join Date
    10-13-2011
    Location
    Australia
    MS-Off Ver
    Office 16
    Posts
    329

    Re: I think I need to use SUMPRODUCT but can not make it work

    Please Login or Register  to view this content.
    as an alternative, remember to ALT+Ctrl+Enter for array formulas, it will add {} to either end.

+ 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] F4 doesn't work only in excel, how to make it work again?
    By Dave H in forum Excel General
    Replies: 1
    Last Post: 02-26-2014, 11:22 AM
  2. SUMPRODUCT with MAX and MIN, MIN does not work
    By Masun in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-10-2013, 08:41 AM
  3. [SOLVED] How to make the macro work for all rows in the work sheet
    By Valli nayaki in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2013, 10:43 PM
  4. Will SUMPRODUCT work for this?
    By Aaron Saulisberry in forum Excel General
    Replies: 4
    Last Post: 01-25-2006, 09:10 AM
  5. Replies: 1
    Last Post: 04-07-2005, 04:06 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