+ Reply to Thread
Results 1 to 6 of 6

Sumproduct on 2 asymmetric lists with criteria

  1. #1
    Registered User
    Join Date
    12-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    39

    Sumproduct on 2 asymmetric lists with criteria

    Hi,

    I am looking to perform a sumproduct on two lists of varying lengths/orders based on criteria that is true in both lists. I think the answer will combine sumproduct and isnumber match, but it's trickier than that standard combination due to the asymmetric property of the two lists.

    I have attached a small sample workbook explaining what I am looking to achieve.

    Thanks in advance,

    David
    Attached Files Attached Files

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    26,191

    Re: Sumproduct on 2 asymmetric lists with criteria

    Hi,

    Perhaps as an array fomula - entered with Ctrl Shift Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    i.e. only use the range of column D values you want to include and sort them to then top. In this case D1:D2
    The Row(1:5) needs to be Row(1:n) where n is the number of values in column A
    Richard Buttrey

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    4,790

    Re: Sumproduct on 2 asymmetric lists with criteria

    Try this ARRAY formula.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-30-2013
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Sumproduct on 2 asymmetric lists with criteria

    Thanks for the replies. Both solutions work in my attached example, but i realize that there are additional subtle constraints (not mentioned in my example book) that i didn't pick up on before.

    Richard - i unfortunately cannot sort my list so i don't think this method will work for me, although it works perfectly in the example workbook.

    kvs - this solution is very easy to follow and worked great. However, my two lists are in separate workbooks so the sumif function won't work as I don't want to have both workbooks open. I tried replacing the sumif with sumproduct, however it did not work. This is what i tried:

    Please Login or Register  to view this content.
    Any ways to get around this?

    Thanks!

  5. #5
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    26,191

    Re: Sumproduct on 2 asymmetric lists with criteria

    Quote Originally Posted by david0985 View Post
    Thanks for the replies. Both solutions work in my attached example, but i realize that there are additional subtle constraints (not mentioned in my example book) that i didn't pick up on before.

    Richard - i unfortunately cannot sort my list so i don't think this method will work for me, although it works perfectly in the example workbook.
    Have you considered a macro to sort the list first, doing the stuff with the formula I gave you, copying the results and pasting them back as values, the resorting the list back to the original order?

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    mysore
    MS-Off Ver
    Excel 2007
    Posts
    4,790

    Re: Sumproduct on 2 asymmetric lists with criteria

    Try this
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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