+ 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 - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    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

    RIP - d. 06/10/2022

    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, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,513

    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 - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    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, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,513

    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)

Similar Threads

  1. Replies: 3
    Last Post: 04-21-2015, 07:45 AM
  2. [SOLVED] Asymmetric data matching
    By achilles.a in forum Excel General
    Replies: 15
    Last Post: 04-06-2015, 09:09 PM
  3. Replies: 1
    Last Post: 06-24-2013, 11:52 PM
  4. [SOLVED] Asymmetric Rounding
    By zhb12810 in forum Excel General
    Replies: 3
    Last Post: 07-23-2012, 09:25 AM
  5. Replies: 5
    Last Post: 04-20-2012, 08:54 AM
  6. Asymmetric Fill (not sure what to call it)
    By nogit in forum Excel General
    Replies: 4
    Last Post: 02-01-2010, 06:16 PM
  7. [SOLVED] asymmetric errorbars
    By Sandrina in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-27-2006, 06:48 AM

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