+ Reply to Thread
Results 1 to 11 of 11

Sumproduct - multiple conditions

Hybrid View

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

    Re: Sumproduct - multiple conditions

    Try:

    =SUMPRODUCT((ISNUMBER(MATCH('external sheet'!$A$1:$A$4613,$A$3:$A$8,0))*('external sheet'!$D$1:$D$4613)))
    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.

  2. #2
    Forum Contributor
    Join Date
    07-24-2008
    Location
    Athome
    MS-Off Ver
    Excel 2013
    Posts
    127

    Re: Sumproduct - multiple conditions

    Quote Originally Posted by NBVC View Post
    Try:

    =SUMPRODUCT((ISNUMBER(MATCH('external sheet'!$A$1:$A$4613,$A$3:$A$8,0))*('external sheet'!$D$1:$D$4613)))
    OOOOOOOOKKKK!! Now we're talking.

    Took me an hour to figure out the logic behind this but i do understand it now. Correct me if i'm wrong on this -
    MATCH - this matches the complete list of accounts to those that i specify, and returns a number. If no match, then returns an N/A
    ISNUMBER - where a number is returned, it will generate TRUE = 1

    So this gives the column of accuont numbers a list of 0's and 1's. 1's correspond the account numbers i specify.
    This is then multiplied out against the column with the values.

    ?

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

    Re: Sumproduct - multiple conditions

    Quote Originally Posted by rasonline View Post
    OOOOOOOOKKKK!! Now we're talking.

    Took me an hour to figure out the logic behind this but i do understand it now. Correct me if i'm wrong on this -
    MATCH - this matches the complete list of accounts to those that i specify, and returns a number. If no match, then returns an N/A
    ISNUMBER - where a number is returned, it will generate TRUE = 1

    So this gives the column of accuont numbers a list of 0's and 1's. 1's correspond the account numbers i specify.
    This is then multiplied out against the column with the values.

    ?
    Precisely!

    ...and those multiplied values are summed up.. to give final total.

+ 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