# Sumproduct on 2 asymmetric lists with criteria

1. ## 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.

David

2. ## Re: Sumproduct on 2 asymmetric lists with criteria

Hi,

Perhaps as an array fomula - entered with Ctrl Shift Enter

Formula:
`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

3. ## Re: Sumproduct on 2 asymmetric lists with criteria

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

4. ## 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. ## Re: Sumproduct on 2 asymmetric lists with criteria

Originally Posted by david0985
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. ## Re: Sumproduct on 2 asymmetric lists with criteria

Try this
``Please Login or Register  to view this content.``

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