+ Reply to Thread
Results 1 to 2 of 2

Understanding SumProduct?

  1. #1
    Registered User
    Join Date
    05-01-2009
    Location
    North East (Durham)
    MS-Off Ver
    Excel 2003,7 and 10
    Posts
    63

    Understanding SumProduct?

    I have just started using sumproduct and was wondering if you could help me understand the following

    =SUMPRODUCT(--(A2:A12=B2),(D2:D12))
    and
    =SUMPRODUCT((A2:A12=B2)*(D2:D12))
    are these the same function - I get the same results - just trying to figure out what the -- means in all of this.

    I think "*" means add
    If I did the following
    =SUMPRODUCT(((A2:A12=B2)+(A2:A12=B3)+(A2:A12=B4)),(D2:D12))
    then the "+" means or

    New to this formula and normally use arrays but this may be better in some situations
    I need to understand the the above as I created a sumproduct a few weeks ago and can not remember what it does
    =SUMPRODUCT((kpi_sections=$M7)*(INDEX(KPI_ragy_data,0,MATCH($J$3,periods,0))="Amber"))


    Any guidance on sumproduct apprecaited.

    Thanks - great link
    Last edited by batman1056; 12-31-2010 at 05:19 AM.

  2. #2
    Forum Expert ConneXionLost's Avatar
    Join Date
    03-11-2009
    Location
    Victoria, Canada
    MS-Off Ver
    2010
    Posts
    2,952

    Re: Understanding SumProduct?

    Try xlDynamic for a comprehensive explanation.

    Cheers,
    Would you like to say thanks? Please click the: " Add Reputation" button, on the grey bar below the post.

+ 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