+ Reply to Thread
Results 1 to 8 of 8

=SUMPRODUCT formula failure

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    =SUMPRODUCT formula failure

    No doubt due to a fundamental lack of understanding my SUMPRODUCT formulae (please see attached workbook) is not working. Can someone be kind enough to point out the error of my ways? I've tried every possible combination (except the right one).

    Any help appreciated.
    Attached Files Attached Files
    Last edited by BRISBANEBOB; 02-24-2009 at 10:29 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: =SUMPRODUCT formula failure

    G25 and copy across and down,

    =SUMPRODUCT( ($E$9:$E$22=$E25) * ($F$9:$F$22=$F25) * G$9:G$22)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: =SUMPRODUCT formula failure

    Hi,

    I'm looking at your spreadsheet. Can you explain what you try to calculate?

    Do you want to sum or to count? What do you want to sum/count, depending on what condition??

  4. #4
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: =SUMPRODUCT formula failure

    I'm trying to summarise the array into the four possible conditions (A1, A2, B1, B2)

  5. #5
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: =SUMPRODUCT formula failure

    =SUMPRODUCT( ($E$9:$E$22=$E25) * ($F$9:$F$22=$F25) * G$9:G$22) works perfectly but what's with the spaces? How does that work?

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: =SUMPRODUCT formula failure

    It works with the spaces or without... it's just a matter of aesthetics or preference... but spaces take up character spaces.. so when formulating long formulas, not inserting them is the better thing.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  7. #7
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: =SUMPRODUCT formula failure

    Thanks for the help

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: =SUMPRODUCT formula failure

    If your formula approaches the length limit due to spaces, you don't have a space problem, you have a design problem.

    White space in formulas (other than within quoted strings) is insignificant to evaluation, but adds to readability and therefore maintenance. No one questions the need for white space in code. I wonder why white space in formulas is considered differently.
    Last edited by shg; 02-24-2009 at 11:45 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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