+ Reply to Thread
Results 1 to 4 of 4

Sumproduct Syntax Explaination

  1. #1
    Registered User
    Join Date
    09-28-2013
    Location
    NE USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Sumproduct Syntax Explaination

    Hello all -
    I'm using this sumproduct expression to calculate a "net" score in golf. While it works great - I wish to understand "how". I get the first part that evaluates the player handicap (B9) and hole handicap (W7) to true/false, that "+" is an OR operator - what is the purpose of {0,18,36}?

    SUMPRODUCT(--($B9 >= W$7 + {0,18,36}))

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

    Re: Sumproduct Syntax Explaination

    the plus + in this case is not an OR it adds w7 to {0,18,36}
    so if w7= 8 you compare b9 to 8+{0,18,36} or {8,26,44}
    so if b9 27 it would resolve to true,true,false with the --
    this becomes 1,1,0 so the total is 2
    "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

  3. #3
    Registered User
    Join Date
    09-28-2013
    Location
    NE USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Sumproduct Syntax Explaination

    Thanks for the clarification...the one challenge that remains is if a really good golfer is in the group and plays to a +2 he's "giving strokes" to the course on the 17th and 18th handicap holes - what change would be needed to account for this scenario? For example, the 17th hole is a par 3, he makes 3 "gross" - the net should be 4.

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

    Re: Sumproduct Syntax Explaination

    no idea!!!!!!!!!!!!!!!!!! thats a new question
    Last edited by martindwilson; 10-02-2013 at 08:24 PM.

+ 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 syntax problem
    By 2Dumb4This in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-19-2013, 02:52 AM
  2. sumproduct syntax
    By amartino44 in forum Excel General
    Replies: 5
    Last Post: 12-26-2012, 08:58 PM
  3. Sumproduct Syntax issue
    By TimHayes in forum Excel General
    Replies: 10
    Last Post: 07-07-2011, 11:37 AM
  4. Syntax of sumproduct
    By SANDYFCOR in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-06-2011, 04:12 AM
  5. Sumproduct-how do i do that and keep the right syntax?
    By pelachrum in forum Excel General
    Replies: 3
    Last Post: 02-19-2007, 03:24 PM

Tags for this Thread

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