+ Reply to Thread
Results 1 to 8 of 8

Sumproduct Returning Count of criteria not Sum

  1. #1
    Registered User
    Join Date
    10-26-2016
    Location
    Calgary, AB
    MS-Off Ver
    2013
    Posts
    2

    Sumproduct Returning Count of criteria not Sum

    I've tried this several different ways. A formula written as;
    =SUMPRODUCT(($B$5:$B$10="Apple")*(C5:C10<>"-"))

    Returns the count of cells in the range with the name Apple and not equal to-

    So in the image below, in column C, there are no cells with a numerical value, so the count is returned as 1, where i want the sum to be 6

    untitled.JPG

    Ive also tried
    =SUMPRODUCT(($B$5:$B$10="Apple")*--(C5:C10<>"-"))

    but get the same result.

    Any ideas?
    Attached Images Attached Images

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

    Re: Sumproduct Returning Count of criteria not Sum

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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


  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Sumproduct Returning Count of criteria not Sum

    I presume you are typing the hyphen in (to represent zero). To sum column C with those criteria, you should change the formula to this:

    =SUMPRODUCT(($B$5:$B$10="Apple")*(C5:C10<>"-"),C5:C10)

    Hope this helps.

    Pete

  4. #4
    Valued Forum Contributor
    Join Date
    05-08-2015
    Location
    Uvalde, TX
    MS-Off Ver
    2010
    Posts
    720

    Re: Sumproduct Returning Count of criteria not Sum

    Hi,

    For "Sum Apple" try:

    Please Login or Register  to view this content.
    For "Count" try:

    Please Login or Register  to view this content.
    Hope this is helpful.

    Cheers
    Last edited by southward; 10-26-2016 at 07:34 PM. Reason: Corrected for columns

  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: Sumproduct Returning Count of criteria not Sum

    Have you tried...

    =SUMIF($B5:$B10,"Apple",C5:C10)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Registered User
    Join Date
    10-26-2016
    Location
    Calgary, AB
    MS-Off Ver
    2013
    Posts
    2

    Re: Sumproduct Returning Count of criteria not Sum

    SOLVED! Thanks guys... I hate when you stare at something so long and the answer is right in front of you the whole time....

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

    Re: Sumproduct Returning Count of criteria not Sum

    You're welcome. Thanks for the feedback!

  8. #8
    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,447

    Re: Sumproduct Returning Count of criteria not Sum

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Sumproduct returning #N/A on multiple criteria
    By melaniec in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-13-2015, 12:07 PM
  2. Sumproduct - Count more than one criteria by date
    By drivera74 in forum Excel General
    Replies: 16
    Last Post: 08-19-2015, 10:35 AM
  3. Replies: 2
    Last Post: 08-07-2015, 12:42 AM
  4. [SOLVED] Sumproduct or countifs to count for mutiple criteria
    By Groovicles in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2014, 11:20 AM
  5. [SOLVED] countif or sumproduct to count if criteria set
    By koi in forum Excel General
    Replies: 4
    Last Post: 07-17-2012, 06:38 PM
  6. SUMPRODUCT to count unique values AND more criteria...?
    By tangcla in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-07-2012, 01:59 AM
  7. SUMPRODUCT Formula to Count Row of data Below Matched Criteria
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-02-2005, 10: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