+ Reply to Thread
Results 1 to 8 of 8

SUMPRODUCT giving me different answer

  1. #1
    Forum Contributor
    Join Date
    11-20-2009
    Location
    Melbourne
    MS-Off Ver
    Excel 365
    Posts
    263

    SUMPRODUCT giving me different answer

    Hi,

    I have attached a sample file that shows a SUMPRODUCT formula.
    I am perplexed why I am getting an answer of 15 when I know there are 16 occurrences of the particular team mentioned in the formula.
    Could someone please shine some light on what I am missing? Probably something very obvious and I have spent too much time looking at the formula?
    Thank-you for any help offered.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: SUMPRODUCT giving me different answer

    Hi, to begin with are you sure you have more than 13 times the word Beaconsfield in column A?

  3. #3
    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
    52,936

    Re: SUMPRODUCT giving me different answer

    A201 has a traling space - remove it and you get 16.

    You can also use this...
    =COUNTIFS(A:A,J3,D:D,"<=20",G:G,1)+COUNTIFS(C:C,J3,D:D,"<=20",G:G,1)
    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

  4. #4
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: SUMPRODUCT giving me different answer

    @FDibbins. Could you tell why in the sorted range, after using advance filtering on the op's range, the function SUMPRODUCT doesn't return 16?
    Attached Files Attached Files

  5. #5
    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
    52,936

    Re: SUMPRODUCT giving me different answer

    Actually, if you use regular filter...
    filter D to exclude >20
    filter G =1
    filter A TO Beaconsfield
    =6
    Remove filter from A and apply to C
    =10

  6. #6
    Registered User
    Join Date
    06-13-2013
    Location
    Uddevalla, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: SUMPRODUCT giving me different answer

    Just checked your list w. a Pivottable. There are 3 occurrence of "Beaconsfield" with an extra charachter at the end. Remove it and your formula will work.
    /Robert

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: SUMPRODUCT giving me different answer

    i think that was answered there are trailing spaces in some of the cells remove them and you get the right answer
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  8. #8
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    Re: SUMPRODUCT giving me different answer

    Thanks for the explanation. So SUMPRODUCT((A2:C333=J3) searches for "Beaconsfield" in column A AND in column C. Maybe advance filter might have a problem here because op gave the same headline - team - for both columns, A & C..

+ 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. My HLOOKUP is not giving the answer I expect
    By SparkleHedgehog in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2013, 07:41 AM
  2. [SOLVED] SUMIF not giving me the correct answer
    By Cathy Brausa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-27-2012, 02:05 AM
  3. Vlookup giving wrong answer
    By toclare84 in forum Excel General
    Replies: 5
    Last Post: 08-26-2010, 08:53 AM
  4. How do I add up a range of times giving answer in hrs & mins >24h.
    By Richard T in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2005, 12:06 PM
  5. Formula giving incorrect answer...
    By Jambruins in forum Excel General
    Replies: 3
    Last Post: 02-25-2005, 03: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