+ Reply to Thread
Results 1 to 14 of 14

SUMPRODUCT Not Returning Correct Values

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    49

    SUMPRODUCT Not Returning Correct Values

    And I thought I finally had this mastered with the help I have received here. I have checked everything I can think of as to why the attached is not returning the correct values and it's probably something really simple but I can't find it. All help appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: SUMPRODUCT Not Returning Correct Values

    Hello
    You probably need this formula---
    Use this formula

    =SUMIF(Ferris!$E$6:$E$1100,A7,Ferris!$G$6:$G$1100)


    Hope it helps

    If you are satisfied just click on ADD REPUTATION below.....

    Regrds
    Sourabh Gupta

  3. #3
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: SUMPRODUCT Not Returning Correct Values

    The sum product formula is used to multiply all values in two or more columns and add them up
    like
    Column A B C D
    4 5 6 7
    8 5 3 2
    =sumproduct(A:A,B:B,C:C,D:D)
    Sum product formula will do this
    Column A B C D
    4 * 5 * 6 * 7 = 840
    8 * 5 * 3 * 2 = 240
    ______
    1080
    Moreover we cant enter a condition for the same
    While using a sumif formula we can enter the range and our criteria and our sum range too....
    If we have more then 1 condition then we can use sumifs

    Hope it helps
    Regards
    Sourabh Gupta

  4. #4
    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: SUMPRODUCT Not Returning Correct Values

    Since you're using Excel 2003, SUMIF isn't an option.

    Try this variant of what you were using:

    =IF($A7="","",SUMPRODUCT((Ferris!$E$6:$E$1100=$A7)*Ferris!G$6:G$1100))
    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

  5. #5
    Registered User
    Join Date
    02-18-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: SUMPRODUCT Not Returning Correct Values

    This works Glenn although one cell is returning #VALUE - I have attached the file as sample1 with the cell highlighted. I also checked the column entries to ensure they are all numeric. I am also attaching a similar spreadsheet (Sample2) I did previously which is essentially a variation on the same sort of thing and works without needing the =IF portion of the show at all. I am unclear as to why one needs it and the other doesn't.
    Attached Files Attached Files

  6. #6
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,452

    Re: SUMPRODUCT Not Returning Correct Values

    Found that cell T38 sheet Ferris has a space character in it. Delete it and get correct result.
    Quang PT

  7. #7
    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: SUMPRODUCT Not Returning Correct Values

    First off. Go to cell T38 on "Tours". There's something in the cell. delete it. Then that bit is fine.

    in your original example, there are no data after row 788. There is no invoice number. SUMPRODUCT thinks it has a match when it gets down to row 14 on the summary and makes mistakes. the If bit is an error trapping phrase. Much easier in later versions of Excel where sumif and sumifs can be used.

  8. #8
    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: SUMPRODUCT Not Returning Correct Values

    You got there, then!! I didn't refresh before posting.

  9. #9
    Registered User
    Join Date
    02-18-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: SUMPRODUCT Not Returning Correct Values

    Just input =SUMIF(Ferris!$E$6:$E$1100,A7,Ferris!$G$6:$G$1100) as per sourabhg98's suggestion and that eliminates the #VALUE return in that one cell -which also makes me curious as to why one works in all but one cell and the other works in all of them.

  10. #10
    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: SUMPRODUCT Not Returning Correct Values

    I'm talking cr@p. It's sumIFS that isn't available in Excel 2003. SUMIF is.

  11. #11
    Registered User
    Join Date
    02-18-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: SUMPRODUCT Not Returning Correct Values

    The Excel version is 2010..????

  12. #12
    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: SUMPRODUCT Not Returning Correct Values

    That is not what it says in your profile (below your name in every post)...

  13. #13
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: SUMPRODUCT Not Returning Correct Values

    SUMIF is preferable for this scenario, as others have suggested, but SUMPRODUCt will work if you use the correct syntax. In your original file you used this version:

    =SUMPRODUCT(Ferris!G$6:G$1100,(Ferris!$E$6:$E$1100)=$A7)

    That doesn't work because the second part just returns TRUE/FALSE values which SUMPRODUCT ignores - you need to convert those values to 1/0 values....and Glenn's version does that by multiplying the two arrays, i.e.

    =SUMPRODUCT((Ferris!$E$6:$E$1100=$A7)*Ferris!G$6:G$1100)

    The problem you get with that is that you get #VALUE! error if there's any text in the sum range, so the solution is to use this syntax:

    =SUMPRODUCT(Ferris!G$6:G$1100,(Ferris!$E$6:$E$1100=$A7)+0)

    If there's text in the sum range that will be ignored
    Audere est facere

  14. #14
    Registered User
    Join Date
    02-18-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: SUMPRODUCT Not Returning Correct Values

    I have updated my profile to reflect the correct version of Excel - sorry for causing any inconvenience.

    Is there a quick way to determine where the text values are? I scanned the the column but obviously missed it and definitely don't want the forumla to ignore what should be a numeric value.

+ 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] Sumproduct to calculate closed jobs since April not returning correct amount
    By mmccra2858 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-01-2014, 03:29 PM
  2. [SOLVED] SUMPRODUCT formula not returning correct results
    By CityInspector in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2012, 04:04 PM
  3. [SOLVED] VLOOKUP returning all correct values except the first.
    By K.J.Dub in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-02-2012, 01:05 PM
  4. [SOLVED] Nested If functions are not returning correct values.
    By ybortony in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-21-2012, 01:50 PM
  5. sumproduct returning #value when values are in the table
    By mcantrell in forum Excel General
    Replies: 2
    Last Post: 08-23-2010, 11:37 AM

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