Hi CanMan, there is something missing in your explanation. So, I hope I guessed correctly.
I assumed that the match for cell A3 on Sheet1 should come from column A in Sheet2 and that the match for cell B2 should come from column B in Sheet2. If that is not correct, adjust this formula accordingly.
How this works is ... Sumproduct multiplies arrays, then returns the sum from all of those multiplications. The first array returns a set of True and False. These need to be converted from True/False to numbers ... we do that by multiplying by 1 (or by -1 twice ... some people claim this is actually faster than multiplying by 1 once ... I won't swear to that). Ditto for the second condition. Multiplying True by 1 returns 1. Multiplying False by 1 returns 0.
So, if either of the first 2 matches is "False", then multiplying the 3 arrays together gives 0 for that element in the result array.
Hope that explanation makes sense. If not, write back and I will show you how to prove to yourself that this actually works.
Bookmarks