I am trying to run this bit of code as an array equation:
=SUMPRODUCT(INDEX('TEST DB'!C:C,MATCH(M1&(INDEX($C:$C,MATCH(OFFSET($A$2,,,$M$4+$M$3+1)+M2-$M$4,B:B,1))),'TEST DB'!A:A&'TEST DB'!B:B,0)))
Offset A2 is a helper column from 1 to 1000, M2, 3, 4 are integers, creating an array of certain...